staging: r8188eu: remove unnecessary braces in rtw_xmit.c
authorMarcelo Aloisio da Silva <marcelo.as@aol.com>
Wed, 19 Jan 2022 03:49:33 +0000 (00:49 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jan 2022 15:28:17 +0000 (16:28 +0100)
Remove unnecessary braces reported by checkpatch.pl in rtw_xmit.c.

Signed-off-by: Marcelo Aloisio da Silva <marcelo.as@aol.com>
Link: https://lore.kernel.org/r/20220119034933.GA29744@snoopy
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_xmit.c

index 334644e460006b95eb9709dde989d4d3387dd2ec..f3e788e42b1877ef3f6f936e7f7b27915251d69b 100644 (file)
@@ -133,9 +133,8 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter)
                if (res == _FAIL) {
                        msleep(10);
                        res = rtw_os_xmit_resource_alloc(padapter, pxmitbuf, (MAX_XMITBUF_SZ + XMITBUF_ALIGN_SZ));
-                       if (res == _FAIL) {
+                       if (res == _FAIL)
                                goto exit;
-                       }
                }
 
                pxmitbuf->flags = XMIT_VO_QUEUE;
@@ -710,15 +709,12 @@ s32 rtw_make_wlanhdr(struct adapter *padapter, u8 *hdr, struct pkt_attrib *pattr
 
        struct sta_info *psta;
 
-       if (pattrib->psta) {
+       if (pattrib->psta)
                psta = pattrib->psta;
-       } else {
-               if (is_multicast_ether_addr(pattrib->ra)) {
-                       psta = rtw_get_bcmc_stainfo(padapter);
-               } else {
-                       psta = rtw_get_stainfo(&padapter->stapriv, pattrib->ra);
-               }
-       }
+       else if (is_multicast_ether_addr(pattrib->ra))
+               psta = rtw_get_bcmc_stainfo(padapter);
+       else
+               psta = rtw_get_stainfo(&padapter->stapriv, pattrib->ra);
 
        memset(hdr, 0, WLANHDR_OFFSET);
 
@@ -1470,11 +1466,10 @@ s32 rtw_xmit_classifier(struct adapter *padapter, struct xmit_frame *pxmitframe)
        struct hw_xmit  *phwxmits =  padapter->xmitpriv.hwxmits;
        int res = _SUCCESS;
 
-       if (pattrib->psta) {
+       if (pattrib->psta)
                psta = pattrib->psta;
-       } else {
+       else
                psta = rtw_get_stainfo(pstapriv, pattrib->ra);
-       }
 
        if (!psta) {
                res = _FAIL;