Skip to content

Commit

Permalink
[SCSI] qla2xxx: Properly set the return value in qla2xxx_eh_abort fun…
Browse files Browse the repository at this point in the history
…ction.

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 <saurav.kashyap@qlogic.com>
Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
Saurav Kashyap authored and James Bottomley committed Dec 9, 2010
1 parent 087c621 commit 69abf61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/qla2xxx/qla_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 69abf61

Please sign in to comment.