Skip to content

Commit

Permalink
[SCSI] qla2xxx: negative error return in qla2x00_change_queue_depth()
Browse files Browse the repository at this point in the history
The *change_queue_depth functions usually return a negative error return.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
Roel Kluin authored and James Bottomley committed Feb 17, 2010
1 parent 63bad45 commit 08002af
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 @@ -1258,7 +1258,7 @@ qla2x00_change_queue_depth(struct scsi_device *sdev, int qdepth, int reason)
qla2x00_adjust_sdev_qdepth_up(sdev, qdepth);
break;
default:
return EOPNOTSUPP;
return -EOPNOTSUPP;
}

return sdev->queue_depth;
Expand Down

0 comments on commit 08002af

Please sign in to comment.