* [PATCH] scsi: removed one unneeded shost->active_mode assignment
@ 2008-03-19 19:10 Denis Cheng
0 siblings, 0 replies; only message in thread
From: Denis Cheng @ 2008-03-19 19:10 UTC (permalink / raw)
To: James Bottomley; +Cc: linux-scsi, linux-kernel
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>
---
drivers/scsi/hosts.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
index 880c78b..553d443 100644
--- a/drivers/scsi/hosts.c
+++ b/drivers/scsi/hosts.c
@@ -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 */
--
1.5.4.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-03-19 20:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-19 19:10 [PATCH] scsi: removed one unneeded shost->active_mode assignment Denis Cheng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®