diff options
author | Joe Carnuccio <joe.carnuccio@qlogic.com> | 2010-12-21 19:00:17 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-12-23 16:44:48 -0500 |
commit | 4052bd57234f119cef13b8997fcc852e2b2ce992 (patch) | |
tree | e940fce1232040b1b2b36de02143a90720477190 /drivers/scsi | |
parent | ff8073fffc708a4959c2dd159c834f2516ce9703 (diff) |
[SCSI] qla2xxx: Fixed zero test on new_config in qla2x00_process_loopback().
Fixed the incorrect zero test on array new_config[].
Signed-off-by: Joe Carnuccio <joe.carnuccio@qlogic.com>
Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_bsg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_bsg.c b/drivers/scsi/qla2xxx/qla_bsg.c index 31a4121a2be1..6146d392eeb5 100644 --- a/drivers/scsi/qla2xxx/qla_bsg.c +++ b/drivers/scsi/qla2xxx/qla_bsg.c | |||
@@ -753,7 +753,7 @@ qla2x00_process_loopback(struct fc_bsg_job *bsg_job) | |||
753 | command_sent = INT_DEF_LB_LOOPBACK_CMD; | 753 | command_sent = INT_DEF_LB_LOOPBACK_CMD; |
754 | rval = qla2x00_loopback_test(vha, &elreq, response); | 754 | rval = qla2x00_loopback_test(vha, &elreq, response); |
755 | 755 | ||
756 | if (new_config[1]) { | 756 | if (new_config[0]) { |
757 | /* Revert back to original port config | 757 | /* Revert back to original port config |
758 | * Also clear internal loopback | 758 | * Also clear internal loopback |
759 | */ | 759 | */ |