OSDN Git Service

staging: rtl8723bs: Remove unnecessary braces
authorJavier F. Arias <jarias.linux@gmail.com>
Sun, 6 Oct 2019 23:03:30 +0000 (18:03 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Oct 2019 10:26:59 +0000 (12:26 +0200)
Remove braces that are not necessary for any arm of this statement.
Issue found by checkpatch.

Signed-off-by: Javier F. Arias <jarias.linux@gmail.com>
Link: https://lore.kernel.org/r/20191006230327.GA4168@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_xmit.c

index 29acbb1..bc5ef56 100644 (file)
@@ -3074,9 +3074,8 @@ void rtw_ack_tx_done(struct xmit_priv *pxmitpriv, int status)
 {
        struct submit_ctx *pack_tx_ops = &pxmitpriv->ack_tx_ops;
 
-       if (pxmitpriv->ack_tx) {
+       if (pxmitpriv->ack_tx)
                rtw_sctx_done_err(&pack_tx_ops, status);
-       } else {
+       else
                DBG_871X("%s ack_tx not set\n", __func__);
-       }
 }