[PATCH v2 1/3] staging: rtl8188eu: Remove redundant parenthesis

Greg KH gregkh at linuxfoundation.org
Tue Jun 13 09:22:46 UTC 2017


On Tue, Jun 13, 2017 at 08:50:38AM +0300, Aviya Erenfeld wrote:
> Remove redundant parenthesis
> 
> Signed-off-by: Aviya Erenfeld <aviyae42 at gmail.com>
> ---
>  drivers/staging/rtl8188eu/core/rtw_sta_mgt.c | 22 +++++++++++-----------
>  1 file changed, 11 insertions(+), 11 deletions(-)
> 
> diff --git a/drivers/staging/rtl8188eu/core/rtw_sta_mgt.c b/drivers/staging/rtl8188eu/core/rtw_sta_mgt.c
> index 2ecfb11..c6a7df5 100644
> --- a/drivers/staging/rtl8188eu/core/rtw_sta_mgt.c
> +++ b/drivers/staging/rtl8188eu/core/rtw_sta_mgt.c
> @@ -91,7 +91,7 @@ u32	_rtw_init_sta_priv(struct	sta_priv *pstapriv)
>  	for (i = 0; i < NUM_STA; i++) {
>  		_rtw_init_stainfo(psta);
>  
> -		INIT_LIST_HEAD(&(pstapriv->sta_hash[i]));
> +		INIT_LIST_HEAD(&pstapriv->sta_hash[i]);

What complaines about these?  Does checkpatch?  Or something else?

It makes sense why they were added, don't you think so?  It makes the
code easier to understand in some places.

thanks,

greg k-h


More information about the devel mailing list