mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] scsi: aic7xxx: aic79xx: Clean up errors in aic79xx_proc.c
@ 2023-09-27  7:40 chenguohua
  0 siblings, 0 replies; only message in thread
From: chenguohua @ 2023-09-27  7:40 UTC (permalink / raw)
  To: hare, jejb, martin.petersen; +Cc: linux-scsi, linux-kernel

Fix the following errors reported by checkpatch:

ERROR: "(foo*)" should be "(foo *)"
ERROR: return is not a function, parentheses are not required

Signed-off-by: GuoHua Cheng <chenguohua@jari.cn>
---
 drivers/scsi/aic7xxx/aic79xx_proc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/scsi/aic7xxx/aic79xx_proc.c b/drivers/scsi/aic7xxx/aic79xx_proc.c
index 746d0ca2a657..8ca9b19941e9 100644
--- a/drivers/scsi/aic7xxx/aic79xx_proc.c
+++ b/drivers/scsi/aic7xxx/aic79xx_proc.c
@@ -228,7 +228,7 @@ ahd_proc_write_seeprom(struct Scsi_Host *shost, char *buffer, int length)
 		goto done;
 	}
 
-	have_seeprom = ahd_verify_cksum((struct seeprom_config*)buffer);
+	have_seeprom = ahd_verify_cksum((struct seeprom_config *)buffer);
 	if (have_seeprom == 0) {
 		printk("ahd_proc_write_seeprom: cksum verification failed\n");
 		goto done;
@@ -266,7 +266,7 @@ ahd_proc_write_seeprom(struct Scsi_Host *shost, char *buffer, int length)
 	if (!paused)
 		ahd_unpause(ahd);
 	ahd_unlock(ahd, &s);
-	return (written);
+	return written;
 }
 /*
  * Return information to handle /proc support for the driver.
@@ -298,7 +298,7 @@ ahd_linux_show_info(struct seq_file *m, struct Scsi_Host *shost)
 				seq_putc(m, '\n');
 			}
 			seq_printf(m, "0x%.4x ",
-				  ((uint16_t*)ahd->seep_config)[i]);
+				  ((uint16_t *)ahd->seep_config)[i]);
 		}
 		seq_putc(m, '\n');
 	}
-- 
2.17.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-27  7:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-27  7:40 [PATCH] scsi: aic7xxx: aic79xx: Clean up errors in aic79xx_proc.c chenguohua

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®