diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-12-07 05:58:26 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-12-07 05:58:26 -0500 |
commit | e7d83ed8d0c486fc342e93291e31b3283e3721e7 (patch) | |
tree | 88b836bfe47474f44c86842312d57cfb49b4c757 /net/wireless/wext-compat.c | |
parent | 50c16e2251b63224c05e35d80d434a479a312b4a (diff) |
wext: explicitly cast -110 to u8
This doesn't generate any different code, but will
suppress a spurious smatch warning.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/wext-compat.c')
-rw-r--r-- | net/wireless/wext-compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/wext-compat.c b/net/wireless/wext-compat.c index f9680c9cf9b3..d997d0f0c54a 100644 --- a/net/wireless/wext-compat.c +++ b/net/wireless/wext-compat.c | |||
@@ -176,7 +176,7 @@ int cfg80211_wext_giwrange(struct net_device *dev, | |||
176 | case CFG80211_SIGNAL_TYPE_NONE: | 176 | case CFG80211_SIGNAL_TYPE_NONE: |
177 | break; | 177 | break; |
178 | case CFG80211_SIGNAL_TYPE_MBM: | 178 | case CFG80211_SIGNAL_TYPE_MBM: |
179 | range->max_qual.level = -110; | 179 | range->max_qual.level = (u8)-110; |
180 | range->max_qual.qual = 70; | 180 | range->max_qual.qual = 70; |
181 | range->avg_qual.qual = 35; | 181 | range->avg_qual.qual = 35; |
182 | range->max_qual.updated |= IW_QUAL_DBM; | 182 | range->max_qual.updated |= IW_QUAL_DBM; |