Input: use kzalloc() throughout the code
[linux-drm-fsl-dcu.git] / drivers / input / evbug.c
index d7828936fd8f5edf49145e68bde6272628cfcac9..07358fb51b82aacf8e7cb1b9fbe9f2cc943eb455 100644 (file)
@@ -49,9 +49,8 @@ static struct input_handle *evbug_connect(struct input_handler *handler, struct
 {
        struct input_handle *handle;
 
-       if (!(handle = kmalloc(sizeof(struct input_handle), GFP_KERNEL)))
+       if (!(handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL)))
                return NULL;
-       memset(handle, 0, sizeof(struct input_handle));
 
        handle->dev = dev;
        handle->handler = handler;