From: Saurav Kashyap Date: Wed, 24 Nov 2010 00:52:49 +0000 (-0800) Subject: [SCSI] qla2xxx: Properly set the return value in qla2xxx_eh_abort function. X-Git-Tag: upstream/snapshot3+hdmi~12268^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69abf61ea1005bc362b678639a4ae219e23829f3;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [SCSI] qla2xxx: Properly set the return value in qla2xxx_eh_abort function. A return value is not set for the successful case and it has a garbage value. This fix will set the default value to SUCCESS and in case of any failures it is changed. Signed-off-by: Saurav Kashyap Signed-off-by: Madhuranath Iyengar Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index b873156..2c0876c 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -829,7 +829,7 @@ qla2xxx_eh_abort(struct scsi_cmnd *cmd) { scsi_qla_host_t *vha = shost_priv(cmd->device->host); srb_t *sp; - int ret; + int ret = SUCCESS; unsigned int id, lun; unsigned long flags; int wait = 0;