summaryrefslogtreecommitdiff
path: root/drivers/tty/vt/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/vt/keyboard.c')
-rw-r--r--drivers/tty/vt/keyboard.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/tty/vt/keyboard.c b/drivers/tty/vt/keyboard.c
index dba09eb91f38..13bc048f45e8 100644
--- a/drivers/tty/vt/keyboard.c
+++ b/drivers/tty/vt/keyboard.c
@@ -1548,8 +1548,7 @@ static int kbd_connect(struct input_handler *handler, struct input_dev *dev,
{
int error;
- struct input_handle __free(kfree) *handle = kzalloc_obj(*handle,
- GFP_KERNEL);
+ struct input_handle __free(kfree) *handle = kzalloc_obj(*handle);
if (!handle)
return -ENOMEM;