From: Amitoj Kaur Chawla Date: Wed, 14 Oct 2015 21:52:22 +0000 (+0530) Subject: staging: unisys: Remove useless intialisation X-Git-Tag: firefly_0821_release~176^2~802^2~544 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8d53d80b12c9683d51b8649a74b6c09ca0c15f8a;p=firefly-linux-kernel-4.4.55.git 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 --- 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)