summaryrefslogtreecommitdiff
path: root/drivers/staging/unisys
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>2015-10-14 21:52:22 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-17 05:59:36 (GMT)
commit8d53d80b12c9683d51b8649a74b6c09ca0c15f8a (patch)
treea6990ccd01649cac9ca2c497f9b0fa1403cb7511 /drivers/staging/unisys
parent7eb1f7a09bcc1c5f10241d85bee65e786558f171 (diff)
downloadlinux-8d53d80b12c9683d51b8649a74b6c09ca0c15f8a.tar.xz
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')
-rw-r--r--drivers/staging/unisys/visorinput/visorinput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/unisys/visorinput/visorinput.c b/drivers/staging/unisys/visorinput/visorinput.c
index d23c129..5c16f66 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)