Skip to content

Commit

Permalink
Input: i8042 - use kzalloc instead of kcalloc
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Dmitry Torokhov committed Sep 10, 2005
1 parent fe1e860 commit d39969d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/input/serio/i8042.c
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ static int __init i8042_create_kbd_port(void)
struct serio *serio;
struct i8042_port *port = &i8042_ports[I8042_KBD_PORT_NO];

serio = kcalloc(1, sizeof(struct serio), GFP_KERNEL);
serio = kzalloc(sizeof(struct serio), GFP_KERNEL);
if (!serio)
return -ENOMEM;

Expand All @@ -1011,7 +1011,7 @@ static int __init i8042_create_aux_port(void)
struct serio *serio;
struct i8042_port *port = &i8042_ports[I8042_AUX_PORT_NO];

serio = kcalloc(1, sizeof(struct serio), GFP_KERNEL);
serio = kzalloc(sizeof(struct serio), GFP_KERNEL);
if (!serio)
return -ENOMEM;

Expand All @@ -1036,7 +1036,7 @@ static int __init i8042_create_mux_port(int index)
struct serio *serio;
struct i8042_port *port = &i8042_ports[I8042_MUX_PORT_NO + index];

serio = kcalloc(1, sizeof(struct serio), GFP_KERNEL);
serio = kzalloc(sizeof(struct serio), GFP_KERNEL);
if (!serio)
return -ENOMEM;

Expand Down

0 comments on commit d39969d

Please sign in to comment.