Commit 22479e1c authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: keyboard - change to use kzalloc

Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent d932cb7e
...@@ -1297,9 +1297,9 @@ static struct input_handle *kbd_connect(struct input_handler *handler, ...@@ -1297,9 +1297,9 @@ static struct input_handle *kbd_connect(struct input_handler *handler,
if (i == BTN_MISC && !test_bit(EV_SND, dev->evbit)) if (i == BTN_MISC && !test_bit(EV_SND, dev->evbit))
return NULL; return NULL;
if (!(handle = kmalloc(sizeof(struct input_handle), GFP_KERNEL))) handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL);
if (!handle)
return NULL; return NULL;
memset(handle, 0, sizeof(struct input_handle));
handle->dev = dev; handle->dev = dev;
handle->handler = handler; handle->handler = handler;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment