From: Hannes Reinecke Date: Fri, 2 Jan 2015 14:18:13 +0000 (+0100) Subject: esp_scsi: remove check for ESP_MAX_TAGS X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=37c0b105ae61113b98a81529cccc3a8404ba68b7;p=linux-beck.git 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 Signed-off-by: Hannes Reinecke Signed-off-by: Christoph Hellwig --- 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;