From: Vladimir Zapolskiy Date: Tue, 26 Apr 2016 16:50:31 +0000 (-0700) Subject: Input: byd - don't wipe dynamically allocated memory twice X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5ad629a82de37cbcaffc17861e07b5ec68ab75f4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Input: byd - don't wipe dynamically allocated memory twice Since memory for a private data is allocated by kzalloc() there is no need to fill it with zeroes immediately after the allocation. Signed-off-by: Vladimir Zapolskiy Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/mouse/byd.c b/drivers/input/mouse/byd.c index fdc243ca93ed..ec73f7564245 100644 --- a/drivers/input/mouse/byd.c +++ b/drivers/input/mouse/byd.c @@ -474,7 +474,6 @@ int byd_init(struct psmouse *psmouse) if (!priv) return -ENOMEM; - memset(priv, 0, sizeof(*priv)); setup_timer(&priv->timer, byd_clear_touch, (unsigned long) psmouse); psmouse->private = priv;