Skip to contentSkip to conversation

scsi/megaraid: minor cut and paste error fixed.

PATCH In review James Georgas 2 participants 2 messages Jun 26, 2013 – Jun 28, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi/megaraid: minor cut and paste error fixed.

This looks like a cut and paste typo to me. Both of the megasas_read_fw_status_reg_* functions involved are identical though, so there was no bad behaviour. I changed it for consistency and clarity.

---
 drivers/scsi/megaraid/megaraid_sas_base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/megaraid/megaraid_sas_base.c +1 -1
index 3a9ddae..87591cd 100644
@@ -583,7 +583,7 @@ megasas_clear_intr_skinny(struct megasas_register_set __iomem *regs)
 	/*
 	 * Check if it is our interrupt
 	 */
-	if ((megasas_read_fw_status_reg_gen2(regs) & MFI_STATE_MASK) ==
+	if ((megasas_read_fw_status_reg_skinny(regs) & MFI_STATE_MASK) ==
 	    MFI_STATE_FAULT) {
 		mfiStatus = MFI_INTR_FLAG_FIRMWARE_STATE_CHANGE;
 	} else
Signature · 1 line
1.8.1.5
Acked-by on v1 1/1
#1 lore raw

Thanks James for pointing this out, there is no harm with this change.

Sumit

Quoted 35 lines

-----Original Message-----
From: James Georgas [mailto:[email protected]]
Sent: Wednesday, June 26, 2013 11:33 PM
To: DL-MegaRAID Linux; [email protected]
Cc: [email protected]; [email protected]; James Georgas
Subject: [PATCH 1/1] scsi/megaraid: minor cut and paste error fixed.

This looks like a cut and paste typo to me. Both of the megasas_read_fw_status_reg_* functions involved are identical though, so there was no bad behaviour. I changed it for consistency and clarity.

---
drivers/scsi/megaraid/megaraid_sas_base.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/megaraid/megaraid_sas_base.c +1 -1
index 3a9ddae..87591cd 100644
@@ -583,7 +583,7 @@ megasas_clear_intr_skinny(struct
 megasas_register_set __iomem *regs)
 	/*
 	 * Check if it is our interrupt
 	 */
-	if ((megasas_read_fw_status_reg_gen2(regs) & MFI_STATE_MASK) ==
+	if ((megasas_read_fw_status_reg_skinny(regs) & MFI_STATE_MASK) ==
 	    MFI_STATE_FAULT) {
 		mfiStatus = MFI_INTR_FLAG_FIRMWARE_STATE_CHANGE;
	} else

--
1.8.1.5