diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-02-29 01:36:57 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-05 15:23:16 -0500 |
commit | 551d6fe6cb67ea6f7ca4425a5085b05d34f39730 (patch) | |
tree | c4da0e76378645af5d1f899ac0a9ccdceaabb92e /drivers/net/wireless/rndis_wlan.c | |
parent | b26e395038a219685c7f78f3be8aeb578c4a5b60 (diff) |
rndis_wlan: make some variables unsigned
These variables can never be less than zero because we cap them in
get_device_pmkids(). Let's make them unsigned here because it's simpler
to not have to worry about negative numbers when we read the code.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rndis_wlan.c')
-rw-r--r-- | drivers/net/wireless/rndis_wlan.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c index 1bde2eb54255..454f2f182342 100644 --- a/drivers/net/wireless/rndis_wlan.c +++ b/drivers/net/wireless/rndis_wlan.c | |||
@@ -1790,7 +1790,8 @@ static struct ndis_80211_pmkid *remove_pmkid(struct usbnet *usbdev, | |||
1790 | struct cfg80211_pmksa *pmksa, | 1790 | struct cfg80211_pmksa *pmksa, |
1791 | int max_pmkids) | 1791 | int max_pmkids) |
1792 | { | 1792 | { |
1793 | int i, count, newlen, err; | 1793 | int i, newlen, err; |
1794 | unsigned int count; | ||
1794 | 1795 | ||
1795 | count = le32_to_cpu(pmkids->bssid_info_count); | 1796 | count = le32_to_cpu(pmkids->bssid_info_count); |
1796 | 1797 | ||
@@ -1830,7 +1831,8 @@ static struct ndis_80211_pmkid *update_pmkid(struct usbnet *usbdev, | |||
1830 | struct cfg80211_pmksa *pmksa, | 1831 | struct cfg80211_pmksa *pmksa, |
1831 | int max_pmkids) | 1832 | int max_pmkids) |
1832 | { | 1833 | { |
1833 | int i, err, count, newlen; | 1834 | int i, err, newlen; |
1835 | unsigned int count; | ||
1834 | 1836 | ||
1835 | count = le32_to_cpu(pmkids->bssid_info_count); | 1837 | count = le32_to_cpu(pmkids->bssid_info_count); |
1836 | 1838 | ||