Skip to contentSkip to conversation

esp_scsi: remove check for ESP_MAX_TAGS

PATCH RESEND Applied Hannes Reinecke 2 participants 2 messages Jan 2, 2015 – Jan 5, 2015 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 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.

---
 drivers/scsi/esp_scsi.c | 2 --
 1 file changed, 2 deletions(-)
drivers/scsi/esp_scsi.c +0 -2
index ce5bd52..065b25d 100644
@@ -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;
Signature · 1 line
1.8.4.5