diff options
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | 2015-10-15 03:22:22 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-16 22:59:36 -0700 |
commit | 8d53d80b12c9683d51b8649a74b6c09ca0c15f8a (patch) | |
tree | a6990ccd01649cac9ca2c497f9b0fa1403cb7511 /drivers/staging/unisys/visorinput | |
parent | 7eb1f7a09bcc1c5f10241d85bee65e786558f171 (diff) |
staging: unisys: Remove useless intialisation
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>
Diffstat (limited to 'drivers/staging/unisys/visorinput')
-rw-r--r-- | drivers/staging/unisys/visorinput/visorinput.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/unisys/visorinput/visorinput.c b/drivers/staging/unisys/visorinput/visorinput.c index d23c12946b0b..5c16f6634368 100644 --- a/drivers/staging/unisys/visorinput/visorinput.c +++ b/drivers/staging/unisys/visorinput/visorinput.c @@ -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) |