diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-14 00:09:16 -0500 |
---|---|---|
committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-03-14 00:09:16 -0500 |
commit | b39787a972042ded183343b177d9c595b5704575 (patch) | |
tree | ff0336c45ff4f8bbb3e64af5cc16bcfe75fbb54b /drivers/input/power.c | |
parent | 493a7e0d5614c30e1f3e56d59ab774300a2609f2 (diff) |
Input: use kzalloc() throughout the code
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/power.c')
-rw-r--r-- | drivers/input/power.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/power.c b/drivers/input/power.c index bfc5c63ebffe..526e6070600c 100644 --- a/drivers/input/power.c +++ b/drivers/input/power.c | |||
@@ -103,9 +103,8 @@ static struct input_handle *power_connect(struct input_handler *handler, | |||
103 | { | 103 | { |
104 | struct input_handle *handle; | 104 | struct input_handle *handle; |
105 | 105 | ||
106 | if (!(handle = kmalloc(sizeof(struct input_handle), GFP_KERNEL))) | 106 | if (!(handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL))) |
107 | return NULL; | 107 | return NULL; |
108 | memset(handle, 0, sizeof(struct input_handle)); | ||
109 | 108 | ||
110 | handle->dev = dev; | 109 | handle->dev = dev; |
111 | handle->handler = handler; | 110 | handle->handler = handler; |