Staging: rtl8723au: core: Fix unnecassary braces warning.
authorAybuke Ozdemir <aybuke.147@gmail.com>
Thu, 18 Sep 2014 23:23:53 +0000 (02:23 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2014 23:30:11 +0000 (16:30 -0700)
This patch fixes these warning messages found by checkpatch.pl:
WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Aybuke Ozdemir <aybuke.147@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_sreset.c

index 9a79e11f7ffcf3d3c2b9728b494bff431e4d3654..58ed980795a6be877605350a8d0afa047cf9db34 100644 (file)
@@ -173,9 +173,8 @@ static void sreset_start_adapter(struct rtw_adapter *padapter)
 
        DBG_8723A("%s(%s)\n", __func__, padapter->pnetdev->name);
 
-       if (check_fwstate(pmlmepriv, _FW_LINKED)) {
+       if (check_fwstate(pmlmepriv, _FW_LINKED))
                sreset_restore_network_status(padapter);
-       }
 
        /* TODO: OS and HCI independent */
        tasklet_hi_schedule(&pxmitpriv->xmit_tasklet);