summaryrefslogtreecommitdiff
path: root/src/vendorcode/cavium/bdk/libbdk-hal
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-04-18 18:55:21 +0200
committerElyes Haouas <ehaouas@noos.fr>2023-05-12 16:33:33 +0000
commit830be4d3ea5c942b92d89a5ac3bd906af93d2b49 (patch)
treecf5e471033c82f6d66576e2ec825c75af2fb107a /src/vendorcode/cavium/bdk/libbdk-hal
parent73e6318ec7c043066a6fbbecf36b10afed245644 (diff)
vendorcode/cavium: Fix set but unused variables
TEST: BUILD_TIMELESS=1 remains the same. Change-Id: Id2cb37dbe4d450fe7f91a527b5cd73ac55863548 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74542 Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Diffstat (limited to 'src/vendorcode/cavium/bdk/libbdk-hal')
-rw-r--r--src/vendorcode/cavium/bdk/libbdk-hal/bdk-qlm.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/vendorcode/cavium/bdk/libbdk-hal/bdk-qlm.c b/src/vendorcode/cavium/bdk/libbdk-hal/bdk-qlm.c
index 9fecfcc24c..18d9081922 100644
--- a/src/vendorcode/cavium/bdk/libbdk-hal/bdk-qlm.c
+++ b/src/vendorcode/cavium/bdk/libbdk-hal/bdk-qlm.c
@@ -372,7 +372,6 @@ int bdk_qlm_eye_display(bdk_node_t node, int qlm, int qlm_lane, int format, cons
}
/* Calculate the max eye width */
- int eye_area = 0;
int eye_width = 0;
for (int y = 0; y < eye->height; y++)
{
@@ -382,7 +381,6 @@ int bdk_qlm_eye_display(bdk_node_t node, int qlm, int qlm_lane, int format, cons
if (eye->data[y][x] == 0)
{
width++;
- eye_area++;
}
}
if (width > eye_width)
@@ -399,7 +397,6 @@ int bdk_qlm_eye_display(bdk_node_t node, int qlm, int qlm_lane, int format, cons
if (eye->data[y][x] == 0)
{
height++;
- eye_area++;
}
}
if (height > eye_height)