Skip to contentSkip to conversation

drivers: scsi: remove duplicate logical judgments

PATCH In review Minjie Du 2 participants 2 messages Jul 4, 2023 SCSI

lore
Share & tools
lore

Minjie Du

author
#0 lore raw

PATCH 1/1 drivers: scsi: remove duplicate logical judgments

Fix: delate duplicate logical judgments.
Please check this. Thank you!

---
 drivers/scsi/qlogicfas408.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/scsi/qlogicfas408.c +1 -2
index 3e065d5fc..d2f92672b 100644
@@ -594,8 +594,7 @@ void qlogicfas408_setup(int qbase, int id, int int_type)
 int qlogicfas408_detect(int qbase, int int_type)
 {
 	REG1;
-	return (((inb(qbase + 0xe) ^ inb(qbase + 0xe)) == 7) &&
-		((inb(qbase + 0xe) ^ inb(qbase + 0xe)) == 7));
+	return ((inb(qbase + 0xe) ^ inb(qbase + 0xe)) == 7);
 }
 
 /*
Signature · 1 line
2.39.0
#1 lore raw
Quoted 1 line · Minjie Du

Please check this.

Without feedback from someone who has access to the datasheet this patch probably should not be applied. The repeated inb() calls may be on purpose.

Thanks,

Bart.