Staging: nvec: removes an unnecessary cast on a void pointer
authorBen Marsh <bmarsh94@gmail.com>
Thu, 10 Mar 2016 20:24:59 +0000 (21:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
Patch to nvec_ps2.c to remove an unnecessary cast on a void pointer.

Signed-off-by: Ben Marsh <bmarsh94@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/nvec/nvec_ps2.c

index 0922dd3..a324322 100644 (file)
@@ -78,7 +78,7 @@ static int nvec_ps2_notifier(struct notifier_block *nb,
                             unsigned long event_type, void *data)
 {
        int i;
-       unsigned char *msg = (unsigned char *)data;
+       unsigned char *msg = data;
 
        switch (event_type) {
        case NVEC_PS2_EVT: