From f92f82d676d40d262733c48da5837196e8bc9f18 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Mon, 5 May 2014 12:47:57 +0300 Subject: qla2xxx: fix incorrect debug printk There are missing curly braces here so it prints that the recovery failed even when it succeeded. Signed-off-by: Dan Carpenter Reviewed-by: Giridhar Malavali Acked-by: Chad Dupuis Signed-off-by: Christoph Hellwig diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 5a430c7..0f9cdb3 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -4922,12 +4922,13 @@ qla2x00_do_dpc(void *data) if (qlafx00_reset_initialize(base_vha)) { /* Failed. Abort isp later. */ if (!test_bit(UNLOADING, - &base_vha->dpc_flags)) + &base_vha->dpc_flags)) { set_bit(ISP_UNRECOVERABLE, &base_vha->dpc_flags); ql_dbg(ql_dbg_dpc, base_vha, 0x4021, "Reset Recovery Failed\n"); + } } } -- cgit v0.10.2