staging: wilc1000: wilc_wfi_cfgoperations: Remove useless initialisation
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Thu, 15 Oct 2015 08:18:29 +0000 (13:48 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 04:57:25 +0000 (21:57 -0700)
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>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

index 08ba5ba9318d7dbda10ade5f12a63b86787674f9..be5086fca10a54ac1774d9b0dc81f403db074cd5 100644 (file)
@@ -546,7 +546,7 @@ static void CfgConnectResult(enum conn_event enuConnDisconnEvent,
 
        if (enuConnDisconnEvent == CONN_DISCONN_EVENT_CONN_RESP) {
                /*Initialization*/
-               u16 u16ConnectStatus = WLAN_STATUS_SUCCESS;
+               u16 u16ConnectStatus;
 
                u16ConnectStatus = pstrConnectInfo->u16ConnectStatus;