summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAishwarya Pant <aishpant@gmail.com>2017-04-15 15:38:10 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-18 14:54:25 +0300
commit8321643cccd1fde463f890cddb853209c08db7d7 (patch)
tree2cd40aea4ceac3ffa00fc42e03d9b5e84dfef81c /drivers
parentaf27bea4627358815b773fa2c31dabad62457308 (diff)
downloadlinux-8321643cccd1fde463f890cddb853209c08db7d7.tar.xz
staging: rtl8188eu: fix sparse signedness warnings in rtw_set_ie
Changed the type of sz from (int) to (unsigned int) to suppress signedness mismatch warnings of the type- drivers/staging/rtl8188eu//core/rtw_ieee80211.c:258:97: warning: incorrect type in argument 5 (different signedness) drivers/staging/rtl8188eu//core/rtw_ieee80211.c:258:97: expected unsigned int [usertype] *frlen drivers/staging/rtl8188eu//core/rtw_ieee80211.c:258:97: got int *<noident> Signed-off-by: Aishwarya Pant <aishpant@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/rtl8188eu/core/rtw_ieee80211.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c b/drivers/staging/rtl8188eu/core/rtw_ieee80211.c
index f55b38f35ca3..79dda83d1fda 100644
--- a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c
+++ b/drivers/staging/rtl8188eu/core/rtw_ieee80211.c
@@ -226,7 +226,8 @@ uint rtw_get_rateset_len(u8 *rateset)
int rtw_generate_ie(struct registry_priv *pregistrypriv)
{
u8 wireless_mode;
- int sz = 0, rateLen;
+ int rateLen;
+ uint sz = 0;
struct wlan_bssid_ex *pdev_network = &pregistrypriv->dev_network;
u8 *ie = pdev_network->IEs;