Input: cypress_ps2 - remove casting the return value which is a void pointer
authorJingoo Han <jg1.han@samsung.com>
Mon, 16 Sep 2013 15:32:54 +0000 (08:32 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 18 Sep 2013 14:51:18 +0000 (07:51 -0700)
Casting the return value which is a void pointer is redundant.
The conversion from void pointer to any other pointer type is
guaranteed by the C programming language.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
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;