qla2xxx: negative error return in qla2x00_change_queue_depth()
Subsystems (2)
PATCH 1/1 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 <[email protected]>
---
drivers/scsi/qla2xxx/qla_os.c +1 -1
@@ -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;
Quoted 18 lines · Roel Kluin
The
*change_queue_depthfunctions usually return a negative error return.Signed-off-by Roel Kluin <[email protected]>---
drivers/scsi/qla2xxx/qla_os.c +1
-1@@ -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;