diff options
author | Dmitry Torokhov <dtor@insightbb.com> | 2006-08-04 22:51:51 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2006-08-04 22:51:51 -0400 |
commit | 22479e1c0d111c60d29a4759408394cbdc7548a5 (patch) | |
tree | d8f3bb27d40fbd2e50ffaa7d9c4e8bc9c0883396 | |
parent | d932cb7e630cae3b6b5307b767d296ff1a597c5e (diff) |
Input: keyboard - change to use kzalloc
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
-rw-r--r-- | drivers/char/keyboard.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/keyboard.c b/drivers/char/keyboard.c index 30a745428a09..3e90aac37510 100644 --- a/drivers/char/keyboard.c +++ b/drivers/char/keyboard.c | |||
@@ -1297,9 +1297,9 @@ static struct input_handle *kbd_connect(struct input_handler *handler, | |||
1297 | if (i == BTN_MISC && !test_bit(EV_SND, dev->evbit)) | 1297 | if (i == BTN_MISC && !test_bit(EV_SND, dev->evbit)) |
1298 | return NULL; | 1298 | return NULL; |
1299 | 1299 | ||
1300 | if (!(handle = kmalloc(sizeof(struct input_handle), GFP_KERNEL))) | 1300 | handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL); |
1301 | if (!handle) | ||
1301 | return NULL; | 1302 | return NULL; |
1302 | memset(handle, 0, sizeof(struct input_handle)); | ||
1303 | 1303 | ||
1304 | handle->dev = dev; | 1304 | handle->dev = dev; |
1305 | handle->handler = handler; | 1305 | handle->handler = handler; |