From: Amitoj Kaur Chawla Date: Thu, 15 Oct 2015 08:26:52 +0000 (+0530) Subject: staging: dgnc: dgnc_driver: Remove useless initialisation X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f4edff5208df48ebb3099a3b4a521eb58803f877;p=linux-beck.git staging: dgnc: dgnc_driver: Remove useless initialisation 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/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c index 619baa9e0c12..fc6d2989e28f 100644 --- a/drivers/staging/dgnc/dgnc_driver.c +++ b/drivers/staging/dgnc/dgnc_driver.c @@ -167,7 +167,7 @@ static void dgnc_cleanup_module(void) */ static int __init dgnc_init_module(void) { - int rc = 0; + int rc; /* * Initialize global stuff