diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2014-05-16 10:04:41 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-16 11:34:30 -0700 |
commit | 16b9632da2c071d74934447e266717787bec449b (patch) | |
tree | 57cf9f5f9de681a2e9abdcf4bb2f67dad49a96ad /drivers | |
parent | 8fd873d93d3f6d2331a96531a3211eb8d7133280 (diff) | |
download | linux-16b9632da2c071d74934447e266717787bec449b.tar.bz2 |
staging: rtl8732au: ioctl_cfg80211.c: Fix another case of u8 abuse for error return
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |