Skip to content

Commit bfa0290

Browse files
Ping-Ke Shihgregkh
authored andcommitted
staging: rtl8712: remove unused drvinfo_sz from update_recvframe_attrib
The drvinfo_sz is a size of hardware generated data putting in front of real RX data. The functions r8712_rxcmd_event_hdl() and recvbuf2recvframe() have its own parsing code to get drvinfo_sz to access real RX data, so removing this unused drvinfo_sz is safe. Otherwise, clang report: rtl8712_recv.c:139:6: warning: variable 'drvinfo_sz' set but not used [-Wunused-but-set-variable] 139 | u16 drvinfo_sz; | ^ Signed-off-by: Ping-Ke Shih <[email protected]> Tested-by: Philipp Hortmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 81c05e4 commit bfa0290

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/staging/rtl8712/rtl8712_recv.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,6 @@ void r8712_free_recvframe(union recv_frame *precvframe,
136136
static void update_recvframe_attrib_from_recvstat(struct rx_pkt_attrib *pattrib,
137137
struct recv_stat *prxstat)
138138
{
139-
u16 drvinfo_sz;
140-
141-
drvinfo_sz = (le32_to_cpu(prxstat->rxdw0) & 0x000f0000) >> 16;
142-
drvinfo_sz <<= 3;
143139
/*TODO:
144140
* Offset 0
145141
*/

0 commit comments

Comments
 (0)