From 2d7a7dc9bf4772b6ed711cadeee0bce9bace2a94 Mon Sep 17 00:00:00 2001 From: Saurav Kashyap Date: Wed, 22 Aug 2012 14:21:12 -0400 Subject: [PATCH] [SCSI] qla2xxx: Fix rval may be used uninitialized in this function warning. Fix compile warning in qla25xx_process_bidir_status_iocb as rval is not initialized with a return value. Signed-off-by: Saurav Kashyap Signed-off-by: Chad Dupuis Signed-off-by: James Bottomley --- drivers/scsi/qla2xxx/qla_isr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index 8f37531b9bf4..686099267dd5 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c @@ -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; -- 2.39.5