staging: rtl8188eu: removed unnecessary parentheses
authorJuliana Rodrigues <juliana.orod@gmail.com>
Sat, 27 May 2017 01:00:54 +0000 (22:00 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 May 2017 14:59:32 +0000 (16:59 +0200)
This patch removes numerous unnecessary parentheses in order
to fix checkpatch styling issues.

Signed-off-by: Juliana Rodrigues <juliana.orod@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_cmd.c

index ccf3f1c96559aac2ffadfc873c7475cd3f005546..4061e2a9b97ff499417cedd44430b09bff5eafcd 100644 (file)
@@ -30,7 +30,7 @@ int rtw_init_cmd_priv(struct cmd_priv *pcmdpriv)
        init_completion(&pcmdpriv->cmd_queue_comp);
        init_completion(&pcmdpriv->terminate_cmdthread_comp);
 
-       _rtw_init_queue(&(pcmdpriv->cmd_queue));
+       _rtw_init_queue(&pcmdpriv->cmd_queue);
        return _SUCCESS;
 }
 
@@ -156,7 +156,7 @@ int rtw_cmd_thread(void *context)
        u8 (*cmd_hdl)(struct adapter *padapter, u8 *pbuf);
        void (*pcmd_callback)(struct adapter *dev, struct cmd_obj *pcmd);
        struct adapter *padapter = context;
-       struct cmd_priv *pcmdpriv = &(padapter->cmdpriv);
+       struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
 
        allow_signal(SIGTERM);
 
@@ -377,7 +377,7 @@ u8 rtw_joinbss_cmd(struct adapter  *padapter, struct wlan_network *pnetwork)
        struct ht_priv          *phtpriv = &pmlmepriv->htpriv;
        enum ndis_802_11_network_infra ndis_network_mode = pnetwork->network.InfrastructureMode;
        struct mlme_ext_priv    *pmlmeext = &padapter->mlmeextpriv;
-       struct mlme_ext_info    *pmlmeinfo = &(pmlmeext->mlmext_info);
+       struct mlme_ext_info    *pmlmeinfo = &pmlmeext->mlmext_info;
 
 
        LedControl8188eu(padapter, LED_CTL_START_TO_LINK);
@@ -792,7 +792,7 @@ static void traffic_status_watchdog(struct adapter *padapter)
        u8      bEnterPS;
        u8      bBusyTraffic = false, bTxBusyTraffic = false, bRxBusyTraffic = false;
        u8      bHigherBusyTraffic = false, bHigherBusyRxTraffic = false, bHigherBusyTxTraffic = false;
-       struct mlme_priv                *pmlmepriv = &(padapter->mlmepriv);
+       struct mlme_priv                *pmlmepriv = &padapter->mlmepriv;
 
        /*  */
        /*  Determine if our traffic is busy now */
@@ -851,7 +851,7 @@ static void dynamic_chk_wk_hdl(struct adapter *padapter, u8 *pbuf, int sz)
        struct mlme_priv *pmlmepriv;
 
        padapter = (struct adapter *)pbuf;
-       pmlmepriv = &(padapter->mlmepriv);
+       pmlmepriv = &padapter->mlmepriv;
 
 #ifdef CONFIG_88EU_AP_MODE
        if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true)
@@ -867,7 +867,7 @@ static void dynamic_chk_wk_hdl(struct adapter *padapter, u8 *pbuf, int sz)
 static void lps_ctrl_wk_hdl(struct adapter *padapter, u8 lps_ctrl_type)
 {
        struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
-       struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+       struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
        u8      mstatus;
 
 
@@ -1231,7 +1231,7 @@ void rtw_createbss_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd)
        struct wlan_network *pwlan = NULL;
        struct  mlme_priv *pmlmepriv = &padapter->mlmepriv;
        struct wlan_bssid_ex *pnetwork = (struct wlan_bssid_ex *)pcmd->parmbuf;
-       struct wlan_network *tgt_network = &(pmlmepriv->cur_network);
+       struct wlan_network *tgt_network = &pmlmepriv->cur_network;
 
 
        if (pcmd->res != H2C_SUCCESS) {
@@ -1258,7 +1258,7 @@ void rtw_createbss_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd)
                rtw_indicate_connect(padapter);
        } else {
                pwlan = _rtw_alloc_network(pmlmepriv);
-               spin_lock_bh(&(pmlmepriv->scanned_queue.lock));
+               spin_lock_bh(&pmlmepriv->scanned_queue.lock);
                if (pwlan == NULL) {
                        pwlan = rtw_get_oldest_wlan_network(&pmlmepriv->scanned_queue);
                        if (pwlan == NULL) {
@@ -1268,11 +1268,12 @@ void rtw_createbss_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd)
                        }
                        pwlan->last_scanned = jiffies;
                } else {
-                       list_add_tail(&(pwlan->list), &pmlmepriv->scanned_queue.queue);
+                       list_add_tail(&pwlan->list,
+                                     &pmlmepriv->scanned_queue.queue);
                }
 
                pnetwork->Length = get_wlan_bssid_ex_sz(pnetwork);
-               memcpy(&(pwlan->network), pnetwork, pnetwork->Length);
+               memcpy(&pwlan->network, pnetwork, pnetwork->Length);
 
                memcpy(&tgt_network->network, pnetwork, (get_wlan_bssid_ex_sz(pnetwork)));