[PATCH] scsi: aic7xxx: add missing spaces before '(' and after '!='

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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:



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux