diff options
Diffstat (limited to 'drivers/scsi/hpsa.c')
-rw-r--r-- | drivers/scsi/hpsa.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 3569f4201942..617f218e2a16 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c | |||
@@ -4082,11 +4082,6 @@ static int hpsa_change_queue_depth(struct scsi_device *sdev, | |||
4082 | if (reason != SCSI_QDEPTH_DEFAULT) | 4082 | if (reason != SCSI_QDEPTH_DEFAULT) |
4083 | return -ENOTSUPP; | 4083 | return -ENOTSUPP; |
4084 | 4084 | ||
4085 | if (qdepth < 1) | ||
4086 | qdepth = 1; | ||
4087 | else | ||
4088 | if (qdepth > h->nr_cmds) | ||
4089 | qdepth = h->nr_cmds; | ||
4090 | scsi_adjust_queue_depth(sdev, qdepth); | 4085 | scsi_adjust_queue_depth(sdev, qdepth); |
4091 | return sdev->queue_depth; | 4086 | return sdev->queue_depth; |
4092 | } | 4087 | } |