Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d39969de authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

Input: i8042 - use kzalloc instead of kcalloc



Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent fe1e8604
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;

@@ -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;

@@ -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;