aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/intel/lynxpoint/sata.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-10-18 16:43:30 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-10-21 09:05:43 +0000
commit6de151e765a6f67d5195a251bbb1a23dcaca6ce0 (patch)
treedb92108ee04df560d103e1edcb895e9749eadbd8 /src/southbridge/intel/lynxpoint/sata.c
parent422807387ba50719f73ed4627c0f8c6796a47e0f (diff)
sb/lynxpoint: Fix 'dead increment'
Dead increment spotted out using clang-tools. Change-Id: I631524b9346647048fe8ea30387553a5b4651f59 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36129 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/southbridge/intel/lynxpoint/sata.c')
-rw-r--r--src/southbridge/intel/lynxpoint/sata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/southbridge/intel/lynxpoint/sata.c b/src/southbridge/intel/lynxpoint/sata.c
index aae48e7426..75bfbde2dd 100644
--- a/src/southbridge/intel/lynxpoint/sata.c
+++ b/src/southbridge/intel/lynxpoint/sata.c
@@ -144,7 +144,7 @@ static void sata_init(struct device *dev)
/* 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 */