Skip to content

Commit 0d52df8

Browse files
Philipp Hortmanngregkh
authored andcommitted
staging: rtl8723bs: Remove unused function rxmem_to_recvframe
Remove unused function rxmem_to_recvframe and its comment. Signed-off-by: Philipp Hortmann <[email protected]> Link: https://lore.kernel.org/r/1016603607501abe08334f9577728dd3c4209572.1725826273.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a51942d commit 0d52df8

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

drivers/staging/rtl8723bs/include/rtw_recv.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -444,16 +444,6 @@ static inline u8 *recvframe_pull_tail(union recv_frame *precvframe, signed int s
444444

445445
}
446446

447-
static inline union recv_frame *rxmem_to_recvframe(u8 *rxmem)
448-
{
449-
/* due to the design of 2048 bytes alignment of recv_frame, we can reference the union recv_frame */
450-
/* from any given member of recv_frame. */
451-
/* rxmem indicates the any member/address in recv_frame */
452-
453-
return (union recv_frame *)(((SIZE_PTR)rxmem >> RXFRAME_ALIGN) << RXFRAME_ALIGN);
454-
455-
}
456-
457447
static inline signed int get_recvframe_len(union recv_frame *precvframe)
458448
{
459449
return precvframe->u.hdr.len;

0 commit comments

Comments
 (0)