[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 <roel.kluin@gmail.com> Acked-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
committed by
James Bottomley
parent
63bad45db1
commit
08002af25a
@@ -1258,7 +1258,7 @@ qla2x00_change_queue_depth(struct scsi_device *sdev, int qdepth, int reason)
|
|||||||
qla2x00_adjust_sdev_qdepth_up(sdev, qdepth);
|
qla2x00_adjust_sdev_qdepth_up(sdev, qdepth);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return EOPNOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
|
||||||
return sdev->queue_depth;
|
return sdev->queue_depth;
|
||||||
|
Reference in New Issue
Block a user