From: Jes Sorensen Date: Fri, 16 May 2014 08:04:41 +0000 (+0200) Subject: staging: rtl8732au: ioctl_cfg80211.c: Fix another case of u8 abuse for error return X-Git-Tag: next-20140519~19^2~101 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=16b9632da2c071d74934447e266717787bec449b;p=karo-tx-linux.git staging: rtl8732au: ioctl_cfg80211.c: Fix another case of u8 abuse for error return Signed-off-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c index 627d75c1b329..182f57c2d86b 100644 --- a/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c +++ b/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c @@ -435,12 +435,12 @@ void rtw_cfg80211_indicate_disconnect(struct rtw_adapter *padapter) } #ifdef CONFIG_8723AU_AP_MODE -static u8 set_pairwise_key(struct rtw_adapter *padapter, struct sta_info *psta) +static int set_pairwise_key(struct rtw_adapter *padapter, struct sta_info *psta) { struct cmd_obj *ph2c; struct set_stakey_parm *psetstakey_para; struct cmd_priv *pcmdpriv = &padapter->cmdpriv; - u8 res = _SUCCESS; + int res = _SUCCESS; ph2c = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL); if (ph2c == NULL) {