]> Pileus Git - ~andy/linux/blobdiff - drivers/input/mouse/cypress_ps2.c
Input: cypress_ps2 - remove casting the return value which is a void pointer
[~andy/linux] / drivers / input / mouse / cypress_ps2.c
index f51765fff0545e91be567942255cf19532f94a71..ef651ccf130f5fa39d8bd6317efed46892dca3e1 100644 (file)
@@ -679,7 +679,7 @@ int cypress_init(struct psmouse *psmouse)
 {
        struct cytp_data *cytp;
 
-       cytp = (struct cytp_data *)kzalloc(sizeof(struct cytp_data), GFP_KERNEL);
+       cytp = kzalloc(sizeof(struct cytp_data), GFP_KERNEL);
        psmouse->private = (void *)cytp;
        if (cytp == NULL)
                return -ENOMEM;