staging: rtl8723bs: remove unnecessary parentheses in rtw_ioctl_set.c
PATCH 1/1 staging: rtl8723bs: remove unnecessary parentheses in rtw_ioctl_set.c
Remove unnecessary parentheses around variables in rtw_ioctl_set.c to fix checkpatch CHECK messages.
--- drivers/staging/rtl8723bs/core/rtw_ioctl_set.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/staging/rtl8723bs/core/rtw_ioctl_set.c +8 -8
@@ -36,11 +36,11 @@ u8 rtw_do_join(struct adapter *padapter) {struct list_head *plist, *phead;u8 *pibss =NULL ; -struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); -struct __queue *queue = &(pmlmepriv->scanned_queue); +struct mlme_priv *pmlmepriv = &padapter->mlmepriv; +struct __queue *queue = &pmlmepriv->scanned_queue;u8 ret = _SUCCESS; -spin_lock_bh (&(pmlmepriv->scanned_queue.lock)); +spin_lock_bh (&pmlmepriv->scanned_queue.lock); phead =get_list_head (queue); plist =get_next (phead);
@@ -53,7 +53,7 @@ u8 rtw_do_join(struct adapter *padapter) pmlmepriv->to_join = true;if (list_empty (&queue->queue)) { -spin_unlock_bh (&(pmlmepriv->scanned_queue.lock)); +spin_unlock_bh (&pmlmepriv->scanned_queue.lock);_clr_fwstate_ (pmlmepriv, _FW_UNDER_LINKING);/* when set_ssid/set_bssid for rtw_do_join(), but scanning queue is empty */
@@ -74,7 +74,7 @@ u8 rtw_do_join(struct adapter *padapter) }else {int select_ret; -spin_unlock_bh (&(pmlmepriv->scanned_queue.lock)); +spin_unlock_bh (&pmlmepriv->scanned_queue.lock); select_ret =rtw_select_and_join_from_scanned_queue (pmlmepriv);if (select_ret == _SUCCESS) { pmlmepriv->to_join = false;
@@ -84,7 +84,7 @@ u8 rtw_do_join(struct adapter *padapter)/* submit createbss_cmd to change to a ADHOC_MASTER */ /* pmlmepriv->lock has been acquired by caller... */ -struct wlan_bssid_ex *pdev_network = &(padapter->registrypriv.dev_network); +struct wlan_bssid_ex *pdev_network = &padapter->registrypriv.dev_network; pmlmepriv->fw_state =WIFI_ADHOC_MASTER_STATE ;
@@ -415,7 +415,7 @@ u8 rtw_set_802_11_authentication_mode(struct adapter *padapter, enum ndis_802_11u8 rtw_set_802_11_add_wep (struct adapter *padapter,struct ndis_802_11_wep *wep) {signed int keyid, res; -struct security_priv *psecuritypriv = &(padapter->securitypriv); +struct security_priv *psecuritypriv = &padapter->securitypriv;u8 ret = _SUCCESS; keyid = wep->key_index &0x3fffffff ;
@@ -437,7 +437,7 @@ u8 rtw_set_802_11_add_wep(struct adapter *padapter, struct ndis_802_11_wep *wep)break ; } -memcpy (&(psecuritypriv->dot11DefKey[keyid].skey[0 ]), &(wep->key_material), wep->key_length); +memcpy (&psecuritypriv->dot11DefKey[keyid].skey[0 ], &(wep->key_material), wep->key_length); psecuritypriv->dot11DefKeylen[keyid] = wep->key_length;
Signature · 1 line
2.55.0
Greg KH
maintainerQuoted 7 lines · alwaystabs
Remove unnecessary parentheses around variables in
rtw_ioctl_set.cto fix checkpatch CHECK messages.Signed-off-by alwaystabs <[email protected]>--- drivers/staging/rtl8723bs/core/rtw_ioctl_set.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
Hi,
This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree.
You are receiving this message because of the following common error(s) as indicated below:
- It looks like you did not use your "real" name for the patch on either the Signed-off-by: line, or the From: line (both of which have to match). Please read the kernel file, Documentation/process/submitting-patches.rst for how to do this correctly.
If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers.
thanks,
greg k-h's patch email bot