aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2013-06-25 11:27:24 -0400
committerJames Bottomley <JBottomley@Parallels.com>2013-07-08 12:27:07 -0400
commit6593d5bdbdb26d848ac5afa469cdca7abd3298df (patch)
tree4fe261c028fc7aa79f2b95fba8489fe01a11b4fc
parenta44c72f309224973ffc7c7dfeee6e354c6f3d739 (diff)
[SCSI] qla2xxx: Remove dead code in qla2x00_configure_hba()
At the end of qla2x00_configure_hba() we know that rval == QLA_SUCCESS. Hence remove the dead code. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r--drivers/scsi/qla2xxx/qla_dbg.c1
-rw-r--r--drivers/scsi/qla2xxx/qla_init.c8
2 files changed, 1 insertions, 8 deletions
diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx/qla_dbg.c
index 74a2121783c9..91dbd8159eb1 100644
--- a/drivers/scsi/qla2xxx/qla_dbg.c
+++ b/drivers/scsi/qla2xxx/qla_dbg.c
@@ -15,6 +15,7 @@
15 * | Mailbox commands | 0x117a | 0x111a-0x111b | 15 * | Mailbox commands | 0x117a | 0x111a-0x111b |
16 * | | | 0x1155-0x1158 | 16 * | | | 0x1155-0x1158 |
17 * | Device Discovery | 0x2095 | 0x2020-0x2022, | 17 * | Device Discovery | 0x2095 | 0x2020-0x2022, |
18 * | | | 0x2011-0x2012, |
18 * | | | 0x2016 | 19 * | | | 0x2016 |
19 * | Queue Command and IO tracing | 0x3058 | 0x3006-0x300b | 20 * | Queue Command and IO tracing | 0x3058 | 0x3006-0x300b |
20 * | | | 0x3027-0x3028 | 21 * | | | 0x3027-0x3028 |
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index 3565dfd8f370..f2216ed2ad8c 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -2309,14 +2309,6 @@ qla2x00_configure_hba(scsi_qla_host_t *vha)
2309 "Topology - %s, Host Loop address 0x%x.\n", 2309 "Topology - %s, Host Loop address 0x%x.\n",
2310 connect_type, vha->loop_id); 2310 connect_type, vha->loop_id);
2311 2311
2312 if (rval) {
2313 ql_log(ql_log_warn, vha, 0x2011,
2314 "%s FAILED\n", __func__);
2315 } else {
2316 ql_dbg(ql_dbg_disc, vha, 0x2012,
2317 "%s success\n", __func__);
2318 }
2319
2320 return(rval); 2312 return(rval);
2321} 2313}
2322 2314