Staging: rtl8712: Remove unnecessary parentheses
authorTapasweni Pathak <tapaswenipathak@gmail.com>
Sun, 21 Sep 2014 01:22:39 +0000 (06:52 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Sep 2014 15:14:36 +0000 (08:14 -0700)
This patch fixes checkpatch.pl warning in files of rel8712
WARNING : Unnecessary parentheses - maybe == should be = ?

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl8712_recv.c
drivers/staging/rtl8712/rtl871x_mlme.c

index df1e498e98b6c69e3645e4dff4003b5f7fa36fe6..b27806209268543efef7e3eb236955d44e6e31b5 100644 (file)
@@ -974,7 +974,7 @@ int recv_func(struct _adapter *padapter, void *pcontext)
        prframe = (union recv_frame *)pcontext;
        orig_prframe = prframe;
        pattrib = &prframe->u.hdr.attrib;
-       if ((check_fwstate(pmlmepriv, WIFI_MP_STATE) == true)) {
+       if (check_fwstate(pmlmepriv, WIFI_MP_STATE) == true) {
                if (pattrib->crc_err == 1)
                        padapter->mppriv.rx_crcerrpktcount++;
                else
index 7b7fdec58b38a3c892f7da2119cc674d76490cf1..00f2e0fc4ac5548e2b78f438613c358a2a4fa184 100644 (file)
@@ -590,7 +590,7 @@ void r8712_surveydone_event_callback(struct _adapter *adapter, u8 *pbuf)
        }
 
        if (pmlmepriv->to_join == true) {
-               if ((check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true)) {
+               if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true) {
                        if (check_fwstate(pmlmepriv, _FW_LINKED) == false) {
                                set_fwstate(pmlmepriv, _FW_UNDER_LINKING);