aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hosts.c
diff options
context:
space:
mode:
authorDenis Cheng <crquan@gmail.com>2008-03-19 15:10:20 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-04-07 13:19:05 -0400
commit540d9b40faa8fcf094cb1fbf9224406bb13e3307 (patch)
tree298c0da8fe62b35c3254cce41575b414c329c87c /drivers/scsi/hosts.c
parent36b8dd1bf787512e33efa7ce88eff437404ab22d (diff)
[SCSI] hosts.c: 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. Signed-off-by: Denis Cheng <crquan@gmail.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/hosts.c')
-rw-r--r--drivers/scsi/hosts.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
index ed7e0a1fc34d..1592640a87b5 100644
--- a/drivers/scsi/hosts.c
+++ b/drivers/scsi/hosts.c
@@ -347,7 +347,6 @@ struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *sht, int privsize)
347 shost->unchecked_isa_dma = sht->unchecked_isa_dma; 347 shost->unchecked_isa_dma = sht->unchecked_isa_dma;
348 shost->use_clustering = sht->use_clustering; 348 shost->use_clustering = sht->use_clustering;
349 shost->ordered_tag = sht->ordered_tag; 349 shost->ordered_tag = sht->ordered_tag;
350 shost->active_mode = sht->supported_mode;
351 350
352 if (sht->supported_mode == MODE_UNKNOWN) 351 if (sht->supported_mode == MODE_UNKNOWN)
353 /* means we didn't set it ... default to INITIATOR */ 352 /* means we didn't set it ... default to INITIATOR */