[PATCH] scsi: advansys.c: Cleaning up variable is set more than once

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A struct member variable is set to the same value more than once

This was found using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@xxxxxxxxxxxxxxxxxx>
---
 drivers/scsi/advansys.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c
index d814588..8281ae0 100644
--- a/drivers/scsi/advansys.c
+++ b/drivers/scsi/advansys.c
@@ -11592,7 +11592,6 @@ static int advansys_board_found(struct Scsi_Host *shost, unsigned int iop,
 			    adv_dvc_varp->cfg->disc_enable;
 			ep_38C0800->bios_ctrl = adv_dvc_varp->bios_ctrl;
 			ep_38C0800->wdtr_able = adv_dvc_varp->wdtr_able;
-			ep_38C0800->tagqng_able = adv_dvc_varp->tagqng_able;
 			ep_38C0800->sdtr_speed1 = adv_dvc_varp->sdtr_speed1;
 			ep_38C0800->sdtr_speed2 = adv_dvc_varp->sdtr_speed2;
 			ep_38C0800->sdtr_speed3 = adv_dvc_varp->sdtr_speed3;
@@ -11620,7 +11619,6 @@ static int advansys_board_found(struct Scsi_Host *shost, unsigned int iop,
 			    adv_dvc_varp->cfg->disc_enable;
 			ep_38C1600->bios_ctrl = adv_dvc_varp->bios_ctrl;
 			ep_38C1600->wdtr_able = adv_dvc_varp->wdtr_able;
-			ep_38C1600->tagqng_able = adv_dvc_varp->tagqng_able;
 			ep_38C1600->sdtr_speed1 = adv_dvc_varp->sdtr_speed1;
 			ep_38C1600->sdtr_speed2 = adv_dvc_varp->sdtr_speed2;
 			ep_38C1600->sdtr_speed3 = adv_dvc_varp->sdtr_speed3;
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux