Input: cypress_ps2 - remove useless cast
Get rid of unnecessary (void *) casting in 'cypress_init' function. Signed-off-by: Geyslan G. Bem <geyslan@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
33777f34b5
commit
c2e609599a
1 changed files with 4 additions and 4 deletions
|
@ -680,14 +680,14 @@ int cypress_init(struct psmouse *psmouse)
|
||||||
struct cytp_data *cytp;
|
struct cytp_data *cytp;
|
||||||
|
|
||||||
cytp = kzalloc(sizeof(struct cytp_data), GFP_KERNEL);
|
cytp = kzalloc(sizeof(struct cytp_data), GFP_KERNEL);
|
||||||
psmouse->private = (void *)cytp;
|
if (!cytp)
|
||||||
if (cytp == NULL)
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
cypress_reset(psmouse);
|
psmouse->private = cytp;
|
||||||
|
|
||||||
psmouse->pktsize = 8;
|
psmouse->pktsize = 8;
|
||||||
|
|
||||||
|
cypress_reset(psmouse);
|
||||||
|
|
||||||
if (cypress_query_hardware(psmouse)) {
|
if (cypress_query_hardware(psmouse)) {
|
||||||
psmouse_err(psmouse, "Unable to query Trackpad hardware.\n");
|
psmouse_err(psmouse, "Unable to query Trackpad hardware.\n");
|
||||||
goto err_exit;
|
goto err_exit;
|
||||||
|
|
Loading…
Add table
Reference in a new issue