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-Tag: Ubuntu-5.10.0-12.13~12617^2^2~3 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=5ad629a82de37cbcaffc17861e07b5ec68ab75f4;p=mirror_ubuntu-hirsute-kernel.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;