]> git.karo-electronics.de Git - linux-beck.git/commitdiff
esp_scsi: remove check for ESP_MAX_TAGS
authorHannes Reinecke <hare@suse.de>
Fri, 2 Jan 2015 14:18:13 +0000 (15:18 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 9 Jan 2015 14:44:23 +0000 (15:44 +0100)
'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>
drivers/scsi/esp_scsi.c

index ce5bd52fe692463f78bce7d7104f7c22c4b56690..065b25df741b601f7e51345ce1e56d687a09ee0c 100644 (file)
@@ -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;