diff options
author | Viswas G <Viswas.G@pmcs.com> | 2013-12-10 10:31:28 +0530 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2014-03-15 10:17:46 -0700 |
commit | 859b5d103539ece7d3219f64ce09c6bf5de124e9 (patch) | |
tree | 3bf65e1df03448c19d91042cd4072b6e98e99710 /drivers/scsi/pm8001/pm8001_hwi.c | |
parent | b12bb60d6c350b348a4e1460cd68f97ccae9822e (diff) | |
download | talos-obmc-linux-859b5d103539ece7d3219f64ce09c6bf5de124e9.tar.gz talos-obmc-linux-859b5d103539ece7d3219f64ce09c6bf5de124e9.zip |
[SCSI] pm80xx: Removing redundant code snippets
Removed redundant code snippets in pm8001_hwi.c and
pm8001_ctl.c
Signed-off-by: Viswas G <Viswas.G@pmcs.com>
Reviewed-by: Jack Wang <jinpu.wang@profitbricks.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/pm8001/pm8001_hwi.c')
-rw-r--r-- | drivers/scsi/pm8001/pm8001_hwi.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/scsi/pm8001/pm8001_hwi.c b/drivers/scsi/pm8001/pm8001_hwi.c index 0a1296a87d66..2aa068112bda 100644 --- a/drivers/scsi/pm8001/pm8001_hwi.c +++ b/drivers/scsi/pm8001/pm8001_hwi.c @@ -5072,13 +5072,8 @@ pm8001_get_gsm_dump(struct device *cdev, u32 length, char *buf) direct_data += sprintf(direct_data, "%08x ", value); } /* Shift back to BAR4 original address */ - if (pm8001_ha->chip_id == chip_8001) { - if (-1 == pm8001_bar4_shift(pm8001_ha, 0)) + if (-1 == pm8001_bar4_shift(pm8001_ha, 0)) return 1; - } else { - if (-1 == pm80xx_bar4_shift(pm8001_ha, 0)) - return 1; - } pm8001_ha->fatal_forensic_shift_offset += 1024; if (pm8001_ha->fatal_forensic_shift_offset >= 0x100000) |