diff options
author | Vladimir Zapolskiy <vz@mleia.com> | 2016-04-26 09:50:31 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-04-29 13:59:01 -0700 |
commit | 5ad629a82de37cbcaffc17861e07b5ec68ab75f4 (patch) | |
tree | 26ff93563f3c7256cc3a0c487b41e9087ebfbbcf /drivers/input/mouse/byd.c | |
parent | 82ba0d8ba48df5442ff31ee6f62b594f062bc162 (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/mouse/byd.c')
-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; |