mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Greg Donald <gdonald@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linux.com>,
	Jes Sorensen <Jes.Sorensen@redhat.com>,
	Larry Finger <Larry.Finger@lwfinger.net>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drivers: staging: rtl8723au: Fix "(foo*)" should be "(foo *)" errors
Date: Fri, 22 Aug 2014 11:10:45 -0700	[thread overview]
Message-ID: <1408731045.17241.10.camel@joe-AO725> (raw)
In-Reply-To: <1408728056-17306-1-git-send-email-gdonald@gmail.com>

On Fri, 2014-08-22 at 12:20 -0500, Greg Donald wrote:
> Fix checkpatch.pl "(foo*)" should be "(foo *)" errors

Hello Greg.

> diff --git a/drivers/staging/rtl8723au/core/rtw_ap.c b/drivers/staging/rtl8723au/core/rtw_ap.c
[]
> @@ -599,7 +599,7 @@ void update_sta_info23a_apmode23a(struct rtw_adapter *padapter, struct sta_info
>  
>  	/* todo: init other variables */
>  
> -	memset((void*)&psta->sta_stats, 0, sizeof(struct stainfo_stats));
> +	memset((void *)&psta->sta_stats, 0, sizeof(struct stainfo_stats));

It'd be better to remove the (void *) cast instead.

[]
> diff --git a/drivers/staging/rtl8723au/core/rtw_cmd.c b/drivers/staging/rtl8723au/core/rtw_cmd.c
[]
> @@ -1493,7 +1493,7 @@ void rtw_setstaKey_cmdrsp_callback23a(struct rtw_adapter *padapter,
>  	struct sta_info *psta;
>  
>  	pstapriv = &padapter->stapriv;
> -	psetstakey_rsp = (struct set_stakey_rsp*) (pcmd->rsp);
> +	psetstakey_rsp = (struct set_stakey_rsp *) (pcmd->rsp);

Probably better to remove the space and the
unnecessary parentheses:

	psetstakey_rsp = (struct set_stakey_rsp *)pcmd->rsp;

> @@ -1518,7 +1518,7 @@ void rtw_setassocsta_cmdrsp_callback23a(struct rtw_adapter *padapter,
>  	struct sta_info *psta;
>  
>  	passocsta_parm = (struct set_assocsta_parm *)(pcmd->parmbuf);
> -	passocsta_rsp = (struct set_assocsta_rsp*) (pcmd->rsp);
> +	passocsta_rsp = (struct set_assocsta_rsp *) (pcmd->rsp);

same unnecessary parentheses, maybe
submit separate patches for those.

> diff --git a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
[]
> @@ -4763,7 +4763,7 @@ void report_survey_event23a(struct rtw_adapter *padapter,
>  	pcmd_obj->rsp = NULL;
>  	pcmd_obj->rspsz  = 0;
>  
> -	pc2h_evt_hdr = (struct C2HEvent_Header*)(pevtcmd);
> +	pc2h_evt_hdr = (struct C2HEvent_Header *)(pevtcmd);

more unnecessary parentheses, etc...



  reply	other threads:[~2014-08-22 18:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-22 17:20 Greg Donald
2014-08-22 18:10 ` Joe Perches [this message]
2014-09-07  0:42 [PATCH] drivers: staging: rtl8723au: Fix '"(foo*)" should be "(foo *)"' errors Greg Donald

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=1408731045.17241.10.camel@joe-AO725 \
    --to=joe@perches.com \
    --cc=Jes.Sorensen@redhat.com \
    --cc=Larry.Finger@lwfinger.net \
    --cc=gdonald@gmail.com \
    --cc=gregkh@linux.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®