[<prev] [next>] [day] [month] [year] [list]
Message-ID: <178634b2c91aa1441a6d0eb2fcb4da36@208suo.com>
Date: Thu, 20 Jul 2023 14:08:22 +0800
From: sunran001@...suo.com
To: hare@...e.com, jejb@...ux.ibm.com, martin.petersen@...cle.com
Cc: linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] scsi: aic7xxx: add missing spaces before '(' and after '!='
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@...suo.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(®isters);
SLIST_REMOVE_HEAD(®isters, links);
- switch(curnode->symbol->type) {
+ switch (curnode->symbol->type) {
case REGISTER:
case SCBLOC:
case SRAMLOC:
Powered by blists - more mailing lists