diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-14 06:09:16 +0100 |
---|---|---|
committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-03-14 06:09:16 +0100 |
commit | b39787a972042ded183343b177d9c595b5704575 (patch) | |
tree | ff0336c45ff4f8bbb3e64af5cc16bcfe75fbb54b /drivers/input/evbug.c | |
parent | Input: fix input_free_device() implementation (diff) | |
download | linux-b39787a972042ded183343b177d9c595b5704575.tar.xz linux-b39787a972042ded183343b177d9c595b5704575.zip |
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/evbug.c')
-rw-r--r-- | drivers/input/evbug.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/evbug.c b/drivers/input/evbug.c index d7828936fd8f..07358fb51b82 100644 --- a/drivers/input/evbug.c +++ b/drivers/input/evbug.c @@ -49,9 +49,8 @@ static struct input_handle *evbug_connect(struct input_handler *handler, struct { struct input_handle *handle; - if (!(handle = kmalloc(sizeof(struct input_handle), GFP_KERNEL))) + if (!(handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL))) return NULL; - memset(handle, 0, sizeof(struct input_handle)); handle->dev = dev; handle->handler = handler; |