[PATCH] scsi: aic7xxx: aic79xx: Clean up errors in aic7xxx_proc.c

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

 



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@xxxxxxx>
---
 drivers/scsi/aic7xxx/aic7xxx_proc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/scsi/aic7xxx/aic7xxx_proc.c b/drivers/scsi/aic7xxx/aic7xxx_proc.c
index 4bc9e2dfccf6..256816e6d572 100644
--- a/drivers/scsi/aic7xxx/aic7xxx_proc.c
+++ b/drivers/scsi/aic7xxx/aic7xxx_proc.c
@@ -206,7 +206,7 @@ ahc_proc_write_seeprom(struct Scsi_Host *shost, char *buffer, int length)
 		goto done;
 	}
 
-	have_seeprom = ahc_verify_cksum((struct seeprom_config*)buffer);
+	have_seeprom = ahc_verify_cksum((struct seeprom_config *)buffer);
 	if (have_seeprom == 0) {
 		printk("ahc_proc_write_seeprom: cksum verification failed\n");
 		goto done;
@@ -280,7 +280,7 @@ ahc_proc_write_seeprom(struct Scsi_Host *shost, char *buffer, int length)
 	if (!paused)
 		ahc_unpause(ahc);
 	ahc_unlock(ahc, &s);
-	return (written);
+	return written;
 }
 
 /*
@@ -312,7 +312,7 @@ ahc_linux_show_info(struct seq_file *m, struct Scsi_Host *shost)
 				seq_putc(m, '\n');
 			}
 			seq_printf(m, "0x%.4x ",
-				  ((uint16_t*)ahc->seep_config)[i]);
+				  ((uint16_t *)ahc->seep_config)[i]);
 		}
 		seq_putc(m, '\n');
 	}
-- 
2.17.1




[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