diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2014-05-09 17:04:10 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-16 00:12:01 +0400 |
commit | 849befad333c41633200ff36375d3d48739fbba3 (patch) | |
tree | 58f2d368f67522d322dfa88eb15f88bfbeea40f2 | |
parent | ab281e3ba9ebf8b7b7e0bf4672256b145882c2b0 (diff) | |
download | linux-849befad333c41633200ff36375d3d48739fbba3.tar.xz |
staging: rtl8723au: c2h_evt_hdl() is always called with 3rd argument = NULL
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtl8723au/core/rtw_cmd.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/drivers/staging/rtl8723au/core/rtw_cmd.c b/drivers/staging/rtl8723au/core/rtw_cmd.c index 9cb580e34a26..5276686a0a99 100644 --- a/drivers/staging/rtl8723au/core/rtw_cmd.c +++ b/drivers/staging/rtl8723au/core/rtw_cmd.c @@ -1297,8 +1297,7 @@ exit: return res; } -static int c2h_evt_hdl(struct rtw_adapter *adapter, - struct c2h_evt_hdr *c2h_evt, c2h_id_filter filter) +static int c2h_evt_hdl(struct rtw_adapter *adapter, struct c2h_evt_hdr *c2h_evt) { int ret = _FAIL; u8 buf[16]; @@ -1308,19 +1307,11 @@ static int c2h_evt_hdl(struct rtw_adapter *adapter, if (c2h_evt_read23a(adapter, buf) == _SUCCESS) { c2h_evt = (struct c2h_evt_hdr *)buf; - if (filter && filter(c2h_evt->id) == false) - goto exit; - ret = rtw_hal_c2h_handler23a(adapter, c2h_evt); } - } else { - - if (filter && filter(c2h_evt->id) == false) - goto exit; - + } else ret = rtw_hal_c2h_handler23a(adapter, c2h_evt); - } -exit: + return ret; } @@ -1396,7 +1387,7 @@ u8 rtw_drvextra_cmd_hdl23a(struct rtw_adapter *padapter, const u8 *pbuf) #endif /* CONFIG_8723AU_AP_MODE */ case C2H_WK_CID: c2h_evt_hdl(padapter, - (struct c2h_evt_hdr *)pdrvextra_cmd->pbuf, NULL); + (struct c2h_evt_hdr *)pdrvextra_cmd->pbuf); break; default: |