diff options
author | Phillip Potter <phil@philpotter.co.uk> | 2021-04-06 11:56:07 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-04-06 14:11:18 +0200 |
commit | cf447efc6cdf0e17d7f0d03fa2b58e7860396a9d (patch) | |
tree | 956f227748f8aa24f1ecb7946138298d6ecea733 /drivers/staging/rtl8723bs/os_dep/recv_linux.c | |
parent | 801adee270ba39f633844a1e5aa99175a17f2af3 (diff) | |
download | linux-stable-cf447efc6cdf0e17d7f0d03fa2b58e7860396a9d.tar.gz linux-stable-cf447efc6cdf0e17d7f0d03fa2b58e7860396a9d.tar.bz2 linux-stable-cf447efc6cdf0e17d7f0d03fa2b58e7860396a9d.zip |
staging: rtl8723bs: remove unused variable from rtw_os_recv_indicate_pkt
Remove unused 'ret' variable from rtw_os_recv_indicate_pkt function in
drivers/staging/rtl8723bs/os_dep/recv_linux.c as nothing is actually
done with it. A function return val is conditionally stored to it under
certain circumstances, but nothing is done with it after. Fixes a
warning from kernel test robot.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20210406105607.1689292-1-phil@philpotter.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs/os_dep/recv_linux.c')
-rw-r--r-- | drivers/staging/rtl8723bs/os_dep/recv_linux.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rtl8723bs/os_dep/recv_linux.c b/drivers/staging/rtl8723bs/os_dep/recv_linux.c index 975aceb7b45b..f286c9499106 100644 --- a/drivers/staging/rtl8723bs/os_dep/recv_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/recv_linux.c @@ -98,7 +98,6 @@ struct sk_buff *rtw_os_alloc_msdu_pkt(union recv_frame *prframe, u16 nSubframe_L void rtw_os_recv_indicate_pkt(struct adapter *padapter, struct sk_buff *pkt, struct rx_pkt_attrib *pattrib) { struct mlme_priv *pmlmepriv = &padapter->mlmepriv; - int ret; /* Indicate the packets to upper layer */ if (pkt) { @@ -140,7 +139,7 @@ void rtw_os_recv_indicate_pkt(struct adapter *padapter, struct sk_buff *pkt, str pkt->ip_summed = CHECKSUM_NONE; - ret = rtw_netif_rx(padapter->pnetdev, pkt); + rtw_netif_rx(padapter->pnetdev, pkt); } } |