summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vz@mleia.com>2016-04-26 19:50:31 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-04-29 23:59:01 +0300
commit5ad629a82de37cbcaffc17861e07b5ec68ab75f4 (patch)
tree26ff93563f3c7256cc3a0c487b41e9087ebfbbcf /drivers/input
parent82ba0d8ba48df5442ff31ee6f62b594f062bc162 (diff)
downloadlinux-5ad629a82de37cbcaffc17861e07b5ec68ab75f4.tar.xz
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 <vz@mleia.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/mouse/byd.c1
1 files changed, 0 insertions, 1 deletions
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;