Commit 6bd7e566 authored by Shivani Bhardwaj's avatar Shivani Bhardwaj Committed by Greg Kroah-Hartman

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: default avatarShivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3bffac68
...@@ -1726,7 +1726,6 @@ static int del_pmksa(struct wiphy *wiphy, struct net_device *netdev, ...@@ -1726,7 +1726,6 @@ static int del_pmksa(struct wiphy *wiphy, struct net_device *netdev,
{ {
u32 i; u32 i;
u8 flag = 0;
s32 s32Error = 0; s32 s32Error = 0;
struct wilc_priv *priv = wiphy_priv(wiphy); struct wilc_priv *priv = wiphy_priv(wiphy);
...@@ -1739,7 +1738,6 @@ static int del_pmksa(struct wiphy *wiphy, struct net_device *netdev, ...@@ -1739,7 +1738,6 @@ static int del_pmksa(struct wiphy *wiphy, struct net_device *netdev,
/*If bssid is found, reset the values*/ /*If bssid is found, reset the values*/
PRINT_D(CFG80211_DBG, "Reseting PMKID values\n"); PRINT_D(CFG80211_DBG, "Reseting PMKID values\n");
memset(&priv->pmkid_list.pmkidlist[i], 0, sizeof(struct host_if_pmkid)); memset(&priv->pmkid_list.pmkidlist[i], 0, sizeof(struct host_if_pmkid));
flag = PMKID_FOUND;
break; break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment