diff options
author | Shivani Bhardwaj | 2015-10-13 11:48:38 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-10-13 19:07:06 +0200 |
commit | 6bd7e5668644424cb70be79ecde4033e1ae123a2 (patch) | |
tree | 40c11ec82b84b7828b6cee032276781515340cbe /drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | |
parent | staging: wilc1000: rename u32Length of struct rcvd_net_info (diff) | |
download | kernel-qcow2-linux-6bd7e5668644424cb70be79ecde4033e1ae123a2.tar.gz kernel-qcow2-linux-6bd7e5668644424cb70be79ecde4033e1ae123a2.tar.xz kernel-qcow2-linux-6bd7e5668644424cb70be79ecde4033e1ae123a2.zip |
Staging: wilc1000: wilc_wfi_cfgoperations: Remove unused code
Remove the declaration, initialization and statement having a
variable that is not used anywhere in the code.
Semantic patch used:
@@
type T;
identifier i;
constant C;
position p != e.p;
@@
- T i@p;
<+... when != i
- i = C;
...+>
Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_wfi_cfgoperations.c')
-rw-r--r-- | drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c index 004f4419a044..706912b84798 100644 --- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c @@ -1726,7 +1726,6 @@ static int del_pmksa(struct wiphy *wiphy, struct net_device *netdev, { u32 i; - u8 flag = 0; s32 s32Error = 0; struct wilc_priv *priv = wiphy_priv(wiphy); @@ -1739,7 +1738,6 @@ static int del_pmksa(struct wiphy *wiphy, struct net_device *netdev, /*If bssid is found, reset the values*/ PRINT_D(CFG80211_DBG, "Reseting PMKID values\n"); memset(&priv->pmkid_list.pmkidlist[i], 0, sizeof(struct host_if_pmkid)); - flag = PMKID_FOUND; break; } } |