aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-10-18 19:52:22 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-11-25 09:16:14 +0000
commit878b68581405fc221b6da37b898c28f63f62c359 (patch)
treef10ab9b9460bb78cc53ab5d3a4f5242ef5c727b1
parentcc6809c8b1b5f726c8541b9c4bc33dcbe2536172 (diff)
soc/intel/broadwell: Fix 'dead increment'
Dead increment spotted out using clang-tools. Change-Id: Icfab0b9ce97722fe97a0306cb45fbc2bd072bad6 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36130 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r--src/soc/intel/broadwell/sata.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/soc/intel/broadwell/sata.c b/src/soc/intel/broadwell/sata.c
index e47a78de6c..f4773e186b 100644
--- a/src/soc/intel/broadwell/sata.c
+++ b/src/soc/intel/broadwell/sata.c
@@ -75,8 +75,7 @@ static void sata_init(struct device *dev)
pci_write_config32(dev, 0x98, reg32);
/* Setup register 9Ch */
- reg16 = 0; /* Disable alternate ID */
- reg16 = 1 << 5; /* BWG step 12 */
+ reg16 = (1 << 5); /* BWG step 12 */
pci_write_config16(dev, 0x9c, reg16);
/* SATA Initialization register */