From: Roel Kluin Date: Fri, 29 Jan 2010 10:25:19 +0000 (+0100) Subject: [SCSI] qla2xxx: negative error return in qla2x00_change_queue_depth() X-Git-Tag: firefly_0821_release~9833^2~3106^2~83 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=08002af25a7a379780244b94c5d5eedb7c098629;p=firefly-linux-kernel-4.4.55.git [SCSI] qla2xxx: negative error return in qla2x00_change_queue_depth() The *change_queue_depth functions usually return a negative error return. Signed-off-by: Roel Kluin Acked-by: Giridhar Malavali Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index ddc1d3def36c..82e57d778428 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -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;