From 8d53d80b12c9683d51b8649a74b6c09ca0c15f8a Mon Sep 17 00:00:00 2001 From: Amitoj Kaur Chawla Date: Thu, 15 Oct 2015 03:22:22 +0530 Subject: [PATCH] staging: unisys: Remove useless intialisation Remove intialisation of a variable that is immediately reassigned. The semantic patch used to find this is: // @@ type T; identifier x; constant C; expression e; @@ T x - = C ; x = e; // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman --- drivers/staging/unisys/visorinput/visorinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.20.1