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 <[email protected]>
Acked-by: Jussi Kivilinna <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
struct cfg80211_pmksa *pmksa,
int max_pmkids)
{
- int i, count, newlen, err;
+ int i, newlen, err;
+ unsigned int count;
count = le32_to_cpu(pmkids->bssid_info_count);
struct cfg80211_pmksa *pmksa,
int max_pmkids)
{
- int i, err, count, newlen;
+ int i, err, newlen;
+ unsigned int count;
count = le32_to_cpu(pmkids->bssid_info_count);