summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8723bs/os_dep/recv_linux.c
diff options
context:
space:
mode:
authorNishka Dasgupta2019-06-10 09:47:01 +0200
committerGreg Kroah-Hartman2019-06-13 11:39:31 +0200
commitd05b53205e96f758be84e3724987be5120bfaa84 (patch)
tree7aff0477bc2d6a42dd1b48334a4396647cd6ec75 /drivers/staging/rtl8723bs/os_dep/recv_linux.c
parentstaging: rtl8712: Change return values of r8712_createbss_cmd() (diff)
downloadkernel-qcow2-linux-d05b53205e96f758be84e3724987be5120bfaa84.tar.gz
kernel-qcow2-linux-d05b53205e96f758be84e3724987be5120bfaa84.tar.xz
kernel-qcow2-linux-d05b53205e96f758be84e3724987be5120bfaa84.zip
staging: rtl8723bs: Change type of rtw_os_recv_resource_alloc()
Remove assignment of the return value of rtw_os_recv_resource_alloc as this assignment at the call site is never used. Remove return statement from rtw_os_recv_resource_alloc() as its return variable is never used. Change the type of the function to void. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> 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.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/staging/rtl8723bs/os_dep/recv_linux.c b/drivers/staging/rtl8723bs/os_dep/recv_linux.c
index 67ec336264e5..45145efa3f68 100644
--- a/drivers/staging/rtl8723bs/os_dep/recv_linux.c
+++ b/drivers/staging/rtl8723bs/os_dep/recv_linux.c
@@ -21,13 +21,9 @@ void rtw_os_free_recvframe(union recv_frame *precvframe)
}
/* alloc os related resource in union recv_frame */
-int rtw_os_recv_resource_alloc(struct adapter *padapter, union recv_frame *precvframe)
+void rtw_os_recv_resource_alloc(struct adapter *padapter, union recv_frame *precvframe)
{
- int res = _SUCCESS;
-
precvframe->u.hdr.pkt_newalloc = precvframe->u.hdr.pkt = NULL;
-
- return res;
}
/* free os related resource in union recv_frame */