staging: unisys: Remove useless intialisation
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Wed, 14 Oct 2015 21:52:22 +0000 (03:22 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 05:59:36 +0000 (22:59 -0700)
Remove intialisation of a variable that is immediately reassigned.

The semantic patch used to find this is:

// <smpl>
@@
type T;
identifier x;
constant C;
expression e;
@@

T x
- = C
 ;
x = e;
// </smpl>

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorinput/visorinput.c

index d23c12946b0bf575157c1371b14025a970b69b55..5c16f663436886db1565f46b9af344817b19aa9f 100644 (file)
@@ -255,7 +255,7 @@ register_client_keyboard(void *devdata,  /* opaque on purpose */
 
 {
        int i, error;
-       struct input_dev *visorinput_dev = NULL;
+       struct input_dev *visorinput_dev;
 
        visorinput_dev = input_allocate_device();
        if (!visorinput_dev)