]> err.no Git - linux-2.6/commitdiff
[SCSI] hosts.c: removed one unneeded shost->active_mode assignment
authorDenis Cheng <crquan@gmail.com>
Wed, 19 Mar 2008 19:10:20 +0000 (03:10 +0800)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 7 Apr 2008 17:19:05 +0000 (12:19 -0500)
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>
drivers/scsi/hosts.c

index ed7e0a1fc34de02d3de7ead9c4f3370928d9c530..1592640a87b5404e14119b411596f80196468c81 100644 (file)
@@ -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 */