]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[SCSI] qla2xxx: Fix rval may be used uninitialized in this function warning.
authorSaurav Kashyap <saurav.kashyap@qlogic.com>
Wed, 22 Aug 2012 18:21:12 +0000 (14:21 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 14 Sep 2012 17:28:50 +0000 (18:28 +0100)
Fix compile warning in qla25xx_process_bidir_status_iocb as rval is not
initialized with a return value.

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla2xxx/qla_isr.c

index 8f37531b9bf46784df2484ec5bd6615b950564ea..686099267dd57f7c6f5841570304ce9a8c04d933 100644 (file)
@@ -1735,7 +1735,7 @@ qla25xx_process_bidir_status_iocb(scsi_qla_host_t *vha, void *pkt,
        uint16_t        comp_status;
        uint16_t        scsi_status;
        uint16_t thread_id;
-       uint32_t rval;
+       uint32_t rval = EXT_STATUS_OK;
        struct fc_bsg_job *bsg_job = NULL;
        sts_entry_t *sts;
        struct sts_entry_24xx *sts24;