diff options
author | Hannes Reinecke <hare@suse.de> | 2015-01-02 17:18:13 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2015-01-09 17:44:23 +0300 |
commit | 37c0b105ae61113b98a81529cccc3a8404ba68b7 (patch) | |
tree | f439b7b6b29a9a4c41a5d11fedb79f71b0b5d764 /drivers/scsi/esp_scsi.c | |
parent | eb44552b98b414f00762ede69e5a8398bb50766f (diff) | |
download | linux-37c0b105ae61113b98a81529cccc3a8404ba68b7.tar.xz |
esp_scsi: remove check for ESP_MAX_TAGS
'num_tags' is an unsigned char, so the check for 'ESP_MAX_TAGS'
(which is set to 256) is pointless.
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/esp_scsi.c')
-rw-r--r-- | drivers/scsi/esp_scsi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/esp_scsi.c b/drivers/scsi/esp_scsi.c index ce5bd52fe692..065b25df741b 100644 --- a/drivers/scsi/esp_scsi.c +++ b/drivers/scsi/esp_scsi.c @@ -2396,8 +2396,6 @@ int scsi_esp_register(struct esp *esp, struct device *dev) if (!esp->num_tags) esp->num_tags = ESP_DEFAULT_TAGS; - else if (esp->num_tags >= ESP_MAX_TAG) - esp->num_tags = ESP_MAX_TAG - 1; esp->host->transportt = esp_transport_template; esp->host->max_lun = ESP_MAX_LUN; esp->host->cmd_per_lun = 2; |