summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>2024-09-10 08:56:48 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-09-11 16:57:47 +0300
commit0d52df8c877b27fdb4992e70cc387a1fc78b1c3c (patch)
treee47522fadb7edb2adaec504f922868ec1fb4b98b
parenta51942deb92682ef09b44c360bc223812e3f1499 (diff)
downloadlinux-0d52df8c877b27fdb4992e70cc387a1fc78b1c3c.tar.xz
staging: rtl8723bs: Remove unused function rxmem_to_recvframe
Remove unused function rxmem_to_recvframe and its comment. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/1016603607501abe08334f9577728dd3c4209572.1725826273.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8723bs/include/rtw_recv.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/staging/rtl8723bs/include/rtw_recv.h b/drivers/staging/rtl8723bs/include/rtw_recv.h
index c93594f75436..18dd1464e0c2 100644
--- a/drivers/staging/rtl8723bs/include/rtw_recv.h
+++ b/drivers/staging/rtl8723bs/include/rtw_recv.h
@@ -444,16 +444,6 @@ static inline u8 *recvframe_pull_tail(union recv_frame *precvframe, signed int s
}
-static inline union recv_frame *rxmem_to_recvframe(u8 *rxmem)
-{
- /* due to the design of 2048 bytes alignment of recv_frame, we can reference the union recv_frame */
- /* from any given member of recv_frame. */
- /* rxmem indicates the any member/address in recv_frame */
-
- return (union recv_frame *)(((SIZE_PTR)rxmem >> RXFRAME_ALIGN) << RXFRAME_ALIGN);
-
-}
-
static inline signed int get_recvframe_len(union recv_frame *precvframe)
{
return precvframe->u.hdr.len;