From 830be4d3ea5c942b92d89a5ac3bd906af93d2b49 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Tue, 18 Apr 2023 18:55:21 +0200 Subject: vendorcode/cavium: Fix set but unused variables TEST: BUILD_TIMELESS=1 remains the same. Change-Id: Id2cb37dbe4d450fe7f91a527b5cd73ac55863548 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/74542 Reviewed-by: Felix Singer Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) Reviewed-by: Elyes Haouas --- src/vendorcode/cavium/bdk/libbdk-hal/bdk-qlm.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/vendorcode/cavium/bdk/libbdk-hal') 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) -- cgit v1.2.3