aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vz@mleia.com>2016-04-26 12:50:31 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-04-29 16:59:01 -0400
commit5ad629a82de37cbcaffc17861e07b5ec68ab75f4 (patch)
tree26ff93563f3c7256cc3a0c487b41e9087ebfbbcf /drivers/input
parent82ba0d8ba48df5442ff31ee6f62b594f062bc162 (diff)
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)
474 if (!priv) 474 if (!priv)
475 return -ENOMEM; 475 return -ENOMEM;
476 476
477 memset(priv, 0, sizeof(*priv));
478 setup_timer(&priv->timer, byd_clear_touch, (unsigned long) psmouse); 477 setup_timer(&priv->timer, byd_clear_touch, (unsigned long) psmouse);
479 478
480 psmouse->private = priv; 479 psmouse->private = priv;