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/serio/rpckbd.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/serio/rpckbd.c')
-rw-r--r-- | drivers/input/serio/rpckbd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/serio/rpckbd.c b/drivers/input/serio/rpckbd.c index a3bd11589bc3..513d37fc1acf 100644 --- a/drivers/input/serio/rpckbd.c +++ b/drivers/input/serio/rpckbd.c @@ -111,11 +111,10 @@ static int __devinit rpckbd_probe(struct platform_device *dev) { struct serio *serio; - serio = kmalloc(sizeof(struct serio), GFP_KERNEL); + serio = kzalloc(sizeof(struct serio), GFP_KERNEL); if (!serio) return -ENOMEM; - memset(serio, 0, sizeof(struct serio)); serio->id.type = SERIO_8042; serio->write = rpckbd_write; serio->open = rpckbd_open; |