diff options
author | Ana Rey <anarey@gmail.com> | 2014-03-17 21:22:29 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-18 10:16:36 -0700 |
commit | d28c88db3c665dd2844238a3416ba11df225b1e9 (patch) | |
tree | e928d27de4328a5e6a7b53a0bcd3eecef2f7565c /drivers/staging/rtl8187se | |
parent | cda34a0b3cb3d246c10e0406131250e5991209dc (diff) | |
download | talos-obmc-linux-d28c88db3c665dd2844238a3416ba11df225b1e9.tar.gz talos-obmc-linux-d28c88db3c665dd2844238a3416ba11df225b1e9.zip |
staging: rtl8187se: Use min_t instead of min
Use min_t instead of min function in ieee80211/ieee80211_wx.c
Fix sparse warnings:
WARNING: min() should probably be min_t(u8, network->ssid_len, 32)
Signed-off-by: Ana Rey <anarey@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8187se')
-rw-r--r-- | drivers/staging/rtl8187se/ieee80211/ieee80211_wx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211_wx.c b/drivers/staging/rtl8187se/ieee80211/ieee80211_wx.c index 0ac82d328d26..07c3f715a6f5 100644 --- a/drivers/staging/rtl8187se/ieee80211/ieee80211_wx.c +++ b/drivers/staging/rtl8187se/ieee80211/ieee80211_wx.c @@ -66,7 +66,7 @@ static inline char *rtl818x_translate_scan(struct ieee80211_device *ieee, iwe.u.data.length = sizeof("<hidden>"); start = iwe_stream_add_point(info, start, stop, &iwe, "<hidden>"); } else { - iwe.u.data.length = min(network->ssid_len, (u8)32); + iwe.u.data.length = min_t(u8, network->ssid_len, 32); start = iwe_stream_add_point(info, start, stop, &iwe, network->ssid); } /* Add the protocol name */ |