Commit 5ad629a8 authored by Vladimir Zapolskiy's avatar Vladimir Zapolskiy Committed by Dmitry Torokhov

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: default avatarVladimir Zapolskiy <vz@mleia.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 82ba0d8b
...@@ -474,7 +474,6 @@ int byd_init(struct psmouse *psmouse) ...@@ -474,7 +474,6 @@ int byd_init(struct psmouse *psmouse)
if (!priv) if (!priv)
return -ENOMEM; return -ENOMEM;
memset(priv, 0, sizeof(*priv));
setup_timer(&priv->timer, byd_clear_touch, (unsigned long) psmouse); setup_timer(&priv->timer, byd_clear_touch, (unsigned long) psmouse);
psmouse->private = priv; psmouse->private = priv;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment