提交 5ad629a8 编写于 作者: V Vladimir Zapolskiy 提交者: 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: NVladimir Zapolskiy <vz@mleia.com>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 82ba0d8b
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册