projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50c16e2
)
wext: explicitly cast -110 to u8
author
Johannes Berg
<johannes.berg@intel.com>
Fri, 7 Dec 2012 10:58:26 +0000
(11:58 +0100)
committer
Johannes Berg
<johannes.berg@intel.com>
Fri, 7 Dec 2012 10:58:26 +0000
(11:58 +0100)
This doesn't generate any different code, but will
suppress a spurious smatch warning.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/wext-compat.c
patch
|
blob
|
history
diff --git
a/net/wireless/wext-compat.c
b/net/wireless/wext-compat.c
index f9680c9cf9b3d26fc828671054e8b2c1e1bff551..d997d0f0c54a683fb0aee287d44fc79d4b15230d 100644
(file)
--- a/
net/wireless/wext-compat.c
+++ b/
net/wireless/wext-compat.c
@@
-176,7
+176,7
@@
int cfg80211_wext_giwrange(struct net_device *dev,
case CFG80211_SIGNAL_TYPE_NONE:
break;
case CFG80211_SIGNAL_TYPE_MBM:
- range->max_qual.level = -110;
+ range->max_qual.level =
(u8)
-110;
range->max_qual.qual = 70;
range->avg_qual.qual = 35;
range->max_qual.updated |= IW_QUAL_DBM;