From: Saurav Kashyap Date: Wed, 22 Aug 2012 18:21:12 +0000 (-0400) Subject: [SCSI] qla2xxx: Fix rval may be used uninitialized in this function warning. X-Git-Tag: next-20120917~76^2^2~24 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2d7a7dc9bf4772b6ed711cadeee0bce9bace2a94;p=karo-tx-linux.git [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 --- 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;