From: Denis Cheng Date: Wed, 19 Mar 2008 19:10:20 +0000 (+0800) Subject: [SCSI] hosts.c: removed one unneeded shost->active_mode assignment X-Git-Tag: v2.6.26-rc1~1140^2~68 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=540d9b40faa8fcf094cb1fbf9224406bb13e3307;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c index ed7e0a1fc34..1592640a87b 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) 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 */