diff options
author | Vladimir Zapolskiy <vz@mleia.com> | 2016-04-26 18:50:31 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-04-29 22:59:01 +0200 |
commit | 5ad629a82de37cbcaffc17861e07b5ec68ab75f4 (patch) | |
tree | 26ff93563f3c7256cc3a0c487b41e9087ebfbbcf | |
parent | Input: twl4030 - fix unsafe macro definition (diff) | |
download | linux-5ad629a82de37cbcaffc17861e07b5ec68ab75f4.tar.xz linux-5ad629a82de37cbcaffc17861e07b5ec68ab75f4.zip |
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>
-rw-r--r-- | drivers/input/mouse/byd.c | 1 |
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; |