mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-15 13:22:55 +00:00
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>
This commit is contained in:
parent
50c16e2251
commit
e7d83ed8d0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user