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 before '(' and after '!='
Date: Thu, 20 Jul 2023 14:08:22 +0800	[thread overview]
Message-ID: <178634b2c91aa1441a6d0eb2fcb4da36@208suo.com> (raw)
In-Reply-To: <20230720060342.2381-1-xujianghui@cdjrlc.com>

Add missing spaces to clear checkpatch errors.

ERROR: space required before the open parenthesis '('
ERROR: spaces required around that '!=' (ctx:WxV)

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

diff --git a/drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c 
b/drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c
index c8170bbd67da..6c06e3652e85 100644
--- a/drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c
+++ b/drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c
@@ -87,7 +87,7 @@ symbol_delete(symbol_t *symbol)
  		key.size = strlen(symbol->name);
  		symtable->del(symtable, &key, /*flags*/0);
  	}
-	switch(symbol->type) {
+	switch (symbol->type) {
  	case SCBLOC:
  	case SRAMLOC:
  	case REGISTER:
@@ -183,7 +183,7 @@ symtable_get(char *name)
  			data.data = &new_symbol;
  			data.size = sizeof(new_symbol);
  			if (symtable->put(symtable, &key, &data,
-					  /*flags*/0) !=0) {
+					  /*flags*/0) != 0) {
  				perror("Symtable put failed");
  				exit(EX_SOFTWARE);
  			}
@@ -197,7 +197,7 @@ symtable_get(char *name)
  	memcpy(&stored_ptr, data.data, sizeof(stored_ptr));
  	stored_ptr->count++;
  	data.data = &stored_ptr;
-	if (symtable->put(symtable, &key, &data, /*flags*/0) !=0) {
+	if (symtable->put(symtable, &key, &data, /*flags*/0) != 0) {
  		perror("Symtable put failed");
  		exit(EX_SOFTWARE);
  	}
@@ -210,7 +210,7 @@ symlist_search(symlist_t *symlist, char *symname)
  	symbol_node_t *curnode;

  	curnode = SLIST_FIRST(symlist);
-	while(curnode != NULL) {
+	while (curnode != NULL) {
  		if (strcmp(symname, curnode->symbol->name) == 0)
  			break;
  		curnode = SLIST_NEXT(curnode, links);
@@ -234,7 +234,7 @@ symlist_add(symlist_t *symlist, symbol_t *symbol, 
int how)
  		int field;

  		field = FALSE;
-		switch(symbol->type) {
+		switch (symbol->type) {
  		case REGISTER:
  		case SCBLOC:
  		case SRAMLOC:
@@ -314,7 +314,7 @@ symlist_merge(symlist_t *symlist_dest, symlist_t 
*symlist_src1,
  	symbol_node_t *node;

  	*symlist_dest = *symlist_src1;
-	while((node = SLIST_FIRST(symlist_src2)) != NULL) {
+	while ((node = SLIST_FIRST(symlist_src2)) != NULL) {
  		SLIST_REMOVE_HEAD(symlist_src2, links);
  		SLIST_INSERT_HEAD(symlist_dest, node, links);
  	}
@@ -492,7 +492,7 @@ symtable_dump(FILE *ofile, FILE *dfile)
  		symbol_t *cursym;

  		memcpy(&cursym, data.data, sizeof(cursym));
-		switch(cursym->type) {
+		switch (cursym->type) {
  		case REGISTER:
  		case SCBLOC:
  		case SRAMLOC:
@@ -538,7 +538,7 @@ symtable_dump(FILE *ofile, FILE *dfile)
  		if (curnode->symbol->dont_generate_debug_code)
  			continue;

-		switch(curnode->symbol->type) {
+		switch (curnode->symbol->type) {
  		case REGISTER:
  		case SCBLOC:
  		case SRAMLOC:
@@ -606,7 +606,7 @@ symtable_dump(FILE *ofile, FILE *dfile)

  		curnode = SLIST_FIRST(&registers);
  		SLIST_REMOVE_HEAD(&registers, links);
-		switch(curnode->symbol->type) {
+		switch (curnode->symbol->type) {
  		case REGISTER:
  		case SCBLOC:
  		case SRAMLOC:

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

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20230720060342.2381-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=178634b2c91aa1441a6d0eb2fcb4da36@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®