提交 c2e60959 编写于 作者: G Geyslan G. Bem 提交者: Dmitry Torokhov

Input: cypress_ps2 - remove useless cast

Get rid of unnecessary (void *) casting in 'cypress_init' function.
Signed-off-by: NGeyslan G. Bem <geyslan@gmail.com>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 33777f34
......@@ -680,14 +680,14 @@ int cypress_init(struct psmouse *psmouse)
struct cytp_data *cytp;
cytp = kzalloc(sizeof(struct cytp_data), GFP_KERNEL);
psmouse->private = (void *)cytp;
if (cytp == NULL)
if (!cytp)
return -ENOMEM;
cypress_reset(psmouse);
psmouse->private = cytp;
psmouse->pktsize = 8;
cypress_reset(psmouse);
if (cypress_query_hardware(psmouse)) {
psmouse_err(psmouse, "Unable to query Trackpad hardware.\n");
goto err_exit;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册