staging: r8188eu: summarize declaration and assignment
authorMartin Kaiser <martin@kaiser.cx>
Sat, 5 Mar 2022 14:41:14 +0000 (15:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Mar 2022 17:29:34 +0000 (18:29 +0100)
Summarize the declaration of pattrib and the assignment in the
following line.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220305144117.1380534-3-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/rtl8188e_rxdesc.c

index ad5cbf0942fb57f2253903dc25b1b5e0a82b6385..aee6b8c23811764e8d0fa07d3652a445e9d20ad6 100644 (file)
@@ -57,9 +57,7 @@ void rtl8188e_process_phy_info(struct adapter *padapter, void *prframe)
 
 void update_recvframe_attrib_88e(struct recv_frame *precvframe, struct recv_stat *prxstat)
 {
-       struct rx_pkt_attrib    *pattrib;
-
-       pattrib = &precvframe->attrib;
+       struct rx_pkt_attrib *pattrib = &precvframe->attrib;
        memset(pattrib, 0, sizeof(struct rx_pkt_attrib));
 
        pattrib->crc_err = (u8)((le32_to_cpu(prxstat->rxdw0) >> 14) & 0x1);/* u8)prxreport->crc32; */