Skip to contentSkip to conversation

scsi: removed one unneeded shost->active_mode assignment

PATCH New Denis Cheng 1 participant 1 message Mar 19, 2008 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: removed one unneeded shost->active_mode assignment

In the following if/else statement, shost->active_mode will always be set, so this assignment is unneeded.

---
 drivers/scsi/hosts.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/scsi/hosts.c +0 -1
index 880c78b..553d443 100644
@@ -341,7 +341,6 @@ struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *sht, int privsize)
 	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 */
Signature · 1 line
1.5.4.4