qla2xxx: fix incorrect debug printk
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 5 May 2014 09:47:57 +0000 (12:47 +0300)
committerChristoph Hellwig <hch@lst.de>
Wed, 28 May 2014 16:13:18 +0000 (18:13 +0200)
There are missing curly braces here so it prints that the recovery
failed even when it succeeded.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Acked-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/qla2xxx/qla_os.c

index 5a430c7bc02715166a987a7aeb2b957a0795de09..0f9cdb38703b7bf1018f931a96eca99bbd550618 100644 (file)
@@ -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");
+                                       }
                                }
                        }