projects/linux·commit a3fda7dd

[SCSI] megaraid: minor cut and paste error fixed.

a3fda7dd · James Georgas <[email protected]> · 2013-06-26 12:03:19 -06:00

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.

Signed-off-by: James Georgas <[email protected]>
Acked-by: Sumit Saxena <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Commit
a3fda7dd5179989dd0ead820dcebd13f956ddec1
Parents
aca898f5

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/scsi/megaraid/megaraid_sas_base.cmodified+1−1View file

drivers/scsi/megaraid/megaraid_sas_base.c

View file
diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c
index 4c4abe1..6002d36 100644
--- a/drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/drivers/scsi/megaraid/megaraid_sas_base.c
@@ -596,7 +596,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