Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: r8188eu: don't initialize drvinfo_sz to 0

In update_recvframe_attrib_88e, there's an initial memset which sets
all of pattrib to 0. There's no need to set pattrib->drvinfo_sz = 0
again later.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220305144117.1380534-4-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Martin Kaiser and committed by
Greg Kroah-Hartman
05a0a115 618a9b27

-2
-2
drivers/staging/r8188eu/hal/rtl8188e_rxdesc.c
··· 91 91 pattrib->shift_sz = (u8)((le32_to_cpu(prxstat->rxdw0) >> 24) & 0x3); 92 92 } else if (pattrib->pkt_rpt_type == TX_REPORT1) { /* CCX */ 93 93 pattrib->pkt_len = TX_RPT1_PKT_LEN; 94 - pattrib->drvinfo_sz = 0; 95 94 } else if (pattrib->pkt_rpt_type == TX_REPORT2) { /* TX RPT */ 96 95 pattrib->pkt_len = (u16)(le32_to_cpu(prxstat->rxdw0) & 0x3FF);/* Rx length[9:0] */ 97 - pattrib->drvinfo_sz = 0; 98 96 99 97 /* */ 100 98 /* Get TX report MAC ID valid. */