Commit b26e3950 authored by Dan Carpenter's avatar Dan Carpenter Committed by John W. Linville

rndis_wlan: remove unneeded variables

We never use the "len" variable.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 41eedf39
...@@ -1790,9 +1790,8 @@ static struct ndis_80211_pmkid *remove_pmkid(struct usbnet *usbdev, ...@@ -1790,9 +1790,8 @@ static struct ndis_80211_pmkid *remove_pmkid(struct usbnet *usbdev,
struct cfg80211_pmksa *pmksa, struct cfg80211_pmksa *pmksa,
int max_pmkids) int max_pmkids)
{ {
int i, len, count, newlen, err; int i, count, newlen, err;
len = le32_to_cpu(pmkids->length);
count = le32_to_cpu(pmkids->bssid_info_count); count = le32_to_cpu(pmkids->bssid_info_count);
if (count > max_pmkids) if (count > max_pmkids)
...@@ -1831,9 +1830,8 @@ static struct ndis_80211_pmkid *update_pmkid(struct usbnet *usbdev, ...@@ -1831,9 +1830,8 @@ static struct ndis_80211_pmkid *update_pmkid(struct usbnet *usbdev,
struct cfg80211_pmksa *pmksa, struct cfg80211_pmksa *pmksa,
int max_pmkids) int max_pmkids)
{ {
int i, err, len, count, newlen; int i, err, count, newlen;
len = le32_to_cpu(pmkids->length);
count = le32_to_cpu(pmkids->bssid_info_count); count = le32_to_cpu(pmkids->bssid_info_count);
if (count > max_pmkids) if (count > max_pmkids)
......
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