]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: rtl8723bs: Remove unused function rxmem_to_recvframe
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Tue, 10 Sep 2024 05:56:48 +0000 (07:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Sep 2024 13:57:47 +0000 (15:57 +0200)
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>
drivers/staging/rtl8723bs/include/rtw_recv.h

index c93594f75436a1126ba04f9aa221573f119584e3..18dd1464e0c2d9e7e62b1f67aa3cc0b269c9a8f9 100644 (file)
@@ -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;