Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 540d9b40 authored by Denis Cheng's avatar Denis Cheng Committed by James Bottomley
Browse files

[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: default avatarDenis Cheng <crquan@gmail.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent 36b8dd1b
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -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->unchecked_isa_dma = sht->unchecked_isa_dma;
	shost->use_clustering = sht->use_clustering;
	shost->use_clustering = sht->use_clustering;
	shost->ordered_tag = sht->ordered_tag;
	shost->ordered_tag = sht->ordered_tag;
	shost->active_mode = sht->supported_mode;


	if (sht->supported_mode == MODE_UNKNOWN)
	if (sht->supported_mode == MODE_UNKNOWN)
		/* means we didn't set it ... default to INITIATOR */
		/* means we didn't set it ... default to INITIATOR */