scsi: removed one unneeded shost->active_mode assignment
PATCH 17/17 scsi: removed one unneeded shost->active_mode assignment
From: Denis Cheng <[email protected]>
In the following if/else statement, shost->active_mode will always be set, so this assignment is unneeded.
Signed-off-by Denis Cheng <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/scsi/hosts.c | 1 - 1 file changed, 1 deletion(-)
drivers/scsi/hosts.c renamed from drivers/scsi/hosts.c~scsi-removed-one-unneeded-shost-active_mode-assignment +0 -1
@@ -341,7 +341,6 @@ struct Scsi_Host *scsi_host_alloc(struct shost->unchecked_isa_dma = sht->unchecked_isa_dma; shost->use_clustering = sht->use_clustering; shost->ordered_tag = sht->ordered_tag; - shost->active_mode = sht->supported_mode;if (sht->supported_mode ==MODE_UNKNOWN )/* means we didn't set it ... default to INITIATOR */
_