public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Franziska Naepelt <franziska.naepelt@googlemail.com>
Cc: eperi1024@gmail.com, franziska.naepelt@gmail.com,
	hdegoede@redhat.com, johannes.berg@intel.com,
	linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev,
	quic_vjakkam@quicinc.com, tegongkang@gmail.com
Subject: Re: [PATCH 2/5] staging: rtl8723bs: Fix space issues
Date: Tue, 20 Jun 2023 16:12:33 +0200	[thread overview]
Message-ID: <2023062012-regain-vintage-2c6d@gregkh> (raw)
In-Reply-To: <20230619180753.18998-1-franziska.naepelt@gmail.com>

On Mon, Jun 19, 2023 at 08:07:53PM +0200, Franziska Naepelt wrote:
> Fix the following checkpatch space issues:
> - CHECK: spaces preferred around that '*' (ctx:VxV)
> - CHECK: spaces preferred around that '+' (ctx:VxV)
> - CHECK: spaces preferred around that '-' (ctx:VxV)
> - CHECK: spaces preferred around that '|' (ctx:VxV)
> - CHECK: No space is necessary after a cast
> - WARNING: please, no spaces at the start of a line
> 
> Signed-off-by: Franziska Naepelt <franziska.naepelt@gmail.com>
> ---
>  .../staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 77 +++++++++----------
>  1 file changed, 38 insertions(+), 39 deletions(-)
> 
> diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
> index 1afd1a93bcee..abda4e0f0bf5 100644
> --- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
> +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
> @@ -95,14 +95,14 @@ static struct ieee80211_channel rtw_2ghz_channels[] = {
>  static void rtw_2g_channels_init(struct ieee80211_channel *channels)
>  {
>  	memcpy((void *)channels, (void *)rtw_2ghz_channels,
> -		sizeof(struct ieee80211_channel)*RTW_2G_CHANNELS_NUM
> +		sizeof(struct ieee80211_channel) * RTW_2G_CHANNELS_NUM
>  	);
>  }
>  
>  static void rtw_2g_rates_init(struct ieee80211_rate *rates)
>  {
>  	memcpy(rates, rtw_g_rates,
> -		sizeof(struct ieee80211_rate)*RTW_G_RATES_NUM
> +		sizeof(struct ieee80211_rate) * RTW_G_RATES_NUM
>  	);
>  }
>  
> @@ -126,8 +126,8 @@ static struct ieee80211_supported_band *rtw_spt_band_alloc(
>  	if (!spt_band)
>  		goto exit;
>  
> -	spt_band->channels = (struct ieee80211_channel *)(((u8 *)spt_band)+sizeof(struct ieee80211_supported_band));
> -	spt_band->bitrates = (struct ieee80211_rate *)(((u8 *)spt_band->channels)+sizeof(struct ieee80211_channel)*n_channels);
> +	spt_band->channels = (struct ieee80211_channel *)(((u8 *)spt_band) + sizeof(struct ieee80211_supported_band));
> +	spt_band->bitrates = (struct ieee80211_rate *)(((u8 *)spt_band->channels) + sizeof(struct ieee80211_channel) * n_channels);
>  	spt_band->band = band;
>  	spt_band->n_channels = n_channels;
>  	spt_band->n_bitrates = n_bitrates;
> @@ -247,10 +247,10 @@ struct cfg80211_bss *rtw_cfg80211_inform_bss(struct adapter *padapter, struct wl
>  		u32 wpsielen = 0;
>  		u8 *wpsie = NULL;
>  
> -		wpsie = rtw_get_wps_ie(pnetwork->network.ies+_FIXED_IE_LENGTH_, pnetwork->network.ie_length-_FIXED_IE_LENGTH_, NULL, &wpsielen);
> +		wpsie = rtw_get_wps_ie(pnetwork->network.ies + _FIXED_IE_LENGTH_, pnetwork->network.ie_length - _FIXED_IE_LENGTH_, NULL, &wpsielen);
>  
>  		if (wpsie && wpsielen > 0)
> -			psr = rtw_get_wps_attr_content(wpsie,  wpsielen, WPS_ATTR_SELECTED_REGISTRAR, (u8 *)(&sr), NULL);
> +			psr = rtw_get_wps_attr_content(wpsie, wpsielen, WPS_ATTR_SELECTED_REGISTRAR, (u8 *)(&sr), NULL);
>  
>  		if (sr != 0) {
>  			/* it means under processing WPS */
> @@ -266,7 +266,6 @@ struct cfg80211_bss *rtw_cfg80211_inform_bss(struct adapter *padapter, struct wl
>  	}
>  	/* spin_unlock_bh(&pwdev_priv->scan_req_lock); */
>  
> -

This was an extra blank line issue that you did not mention in the
changelog :(

Please be more careful.

thanks,

greg k-h

  reply	other threads:[~2023-06-20 14:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-19 17:57 [PATCH 0/5] Fix some checkpatch issues Franziska Naepelt
2023-06-19 18:03 ` [PATCH 1/5] staging: rtl8723bs: Fix indentation issues Franziska Naepelt
2023-06-19 18:07 ` [PATCH 2/5] staging: rtl8723bs: Fix space issues Franziska Naepelt
2023-06-20 14:12   ` Greg KH [this message]
2023-06-21 19:02     ` Franziska Näpelt
2023-06-19 18:12 ` [PATCH 3/5] staging: rtl8723bs: Fix block comment issue Franziska Naepelt
2023-06-19 18:12 ` [PATCH 4/5] staging: rtl8723bs: Fix blank line issues Franziska Naepelt
2023-06-19 18:12 ` [PATCH 5/5] staging: rtl8723bs: Fix alignment open parenthesis Franziska Naepelt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2023062012-regain-vintage-2c6d@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=eperi1024@gmail.com \
    --cc=franziska.naepelt@gmail.com \
    --cc=franziska.naepelt@googlemail.com \
    --cc=hdegoede@redhat.com \
    --cc=johannes.berg@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=quic_vjakkam@quicinc.com \
    --cc=tegongkang@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox