summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorJacob Garber <jgarber1@ualberta.ca>2019-06-24 16:32:19 -0600
committerMartin Roth <martinroth@google.com>2019-07-13 18:37:31 +0000
commite99c1985d587a8983917baf4c9a0609178eca109 (patch)
treeb7be46cf6330e6eef16f39890eaf11741a19b8b8 /src/device
parent31af70dd96406c596306f424ae929664e7862fc2 (diff)
downloadcoreboot-e99c1985d587a8983917baf4c9a0609178eca109.tar.xz
device/hypertransport.c: Remove dead assignment
last_unitid is immediately overwritten in the do loop, so this assignment is not needed. This a relic from old code that commit 13f1c2af8b made obsolete, but was never removed. Change-Id: I2eecddd025f7a64b0a70fc07a61ebb43aba757d6 Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Found-by: scan-build 8.0.0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/34292 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/device')
-rw-r--r--src/device/hypertransport.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/device/hypertransport.c b/src/device/hypertransport.c
index ccad5ce5a5..027c3ef1d4 100644
--- a/src/device/hypertransport.c
+++ b/src/device/hypertransport.c
@@ -291,7 +291,6 @@ static unsigned int do_hypertransport_scan_chain(struct bus *bus, unsigned min_d
prev.freq_cap_off = PCI_HT_CAP_HOST_FREQ_CAP;
/* If present, assign unitid to a hypertransport chain. */
- last_unitid = min_unitid -1;
max_unitid = next_unitid = min_unitid;
do {
u8 pos;