Commit e7d83ed8 authored by Johannes Berg's avatar Johannes Berg

wext: explicitly cast -110 to u8

This doesn't generate any different code, but will
suppress a spurious smatch warning.
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 50c16e22
...@@ -176,7 +176,7 @@ int cfg80211_wext_giwrange(struct net_device *dev, ...@@ -176,7 +176,7 @@ int cfg80211_wext_giwrange(struct net_device *dev,
case CFG80211_SIGNAL_TYPE_NONE: case CFG80211_SIGNAL_TYPE_NONE:
break; break;
case CFG80211_SIGNAL_TYPE_MBM: case CFG80211_SIGNAL_TYPE_MBM:
range->max_qual.level = -110; range->max_qual.level = (u8)-110;
range->max_qual.qual = 70; range->max_qual.qual = 70;
range->avg_qual.qual = 35; range->avg_qual.qual = 35;
range->max_qual.updated |= IW_QUAL_DBM; range->max_qual.updated |= IW_QUAL_DBM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment