mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: sunran001@208suo.com
To: hare@suse.com, jejb@linux.ibm.com, martin.petersen@oracle.com
Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] scsi: aic7xxx: add missing spaces
Date: Thu, 20 Jul 2023 14:39:01 +0800	[thread overview]
Message-ID: <e8abfa9b5579c6ed85ed35662bac290b@208suo.com> (raw)
In-Reply-To: <20230720063719.2618-1-xujianghui@cdjrlc.com>

Add missing spaces to clear checkpatch errors.

ERROR: space required before the open parenthesis '('
ERROR: spaces required around that '=' (ctx:VxW)
ERROR: space required after that ',' (ctx:VxV)

Signed-off-by: Ran Sun <sunran001@208suo.com>
---
  drivers/scsi/aic7xxx/aicasm/aicasm.c | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/scsi/aic7xxx/aicasm/aicasm.c 
b/drivers/scsi/aic7xxx/aicasm/aicasm.c
index cd692a4c5f85..a22f0fffc9b9 100644
--- a/drivers/scsi/aic7xxx/aicasm/aicasm.c
+++ b/drivers/scsi/aic7xxx/aicasm/aicasm.c
@@ -396,7 +396,7 @@ output_code()

  	for (cur_node = SLIST_FIRST(&patch_functions);
  	     cur_node != NULL;
-	     cur_node = SLIST_NEXT(cur_node,links)) {
+	     cur_node = SLIST_NEXT(cur_node, links)) {
  		fprintf(ofile,
  "static %spatch_func_t %spatch%d_func;\n"
  "\n"
@@ -424,7 +424,7 @@ output_code()

  	for (cur_patch = STAILQ_FIRST(&patches);
  	     cur_patch != NULL;
-	     cur_patch = STAILQ_NEXT(cur_patch,links)) {
+	     cur_patch = STAILQ_NEXT(cur_patch, links)) {
  		fprintf(ofile, "%s\t{ %spatch%d_func, %d, %d, %d }",
  			cur_patch == STAILQ_FIRST(&patches) ? "" : ",\n",
  			prefix,
@@ -638,7 +638,7 @@ output_listing(char *ifilename)
  		instrptr++;
  	}
  	/* Dump the remainder of the file */
-	while(fgets(buf, sizeof(buf), ifile) != NULL)
+	while (fgets(buf, sizeof(buf), ifile) != NULL)
  		fprintf(listfile, "             %s", buf);

  	fclose(ifile);
@@ -747,7 +747,7 @@ cs_alloc()
  {
  	critical_section_t *new_cs;

-	new_cs= (critical_section_t *)malloc(sizeof(critical_section_t));
+	new_cs = (critical_section_t *)malloc(sizeof(critical_section_t));
  	if (new_cs == NULL)
  		stop("Unable to malloc critical_section object", EX_SOFTWARE);
  	memset(new_cs, 0, sizeof(*new_cs));

           reply	other threads:[~2023-07-20  6:40 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20230720063719.2618-1-xujianghui@cdjrlc.com>]

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=e8abfa9b5579c6ed85ed35662bac290b@208suo.com \
    --to=sunran001@208suo.com \
    --cc=hare@suse.com \
    --cc=jejb@linux.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.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

all inboxes | Powered by JetHome®