From 81decdf2ee18c5e9d327e3fc77cbcf0385800195 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Fri, 19 May 2023 12:20:15 +0200 Subject: [PATCH] soc/sifive: Comment out set but unused variables The code is supposed to output debug messages but is commented out, so do the same for variables. Signed-off-by: Arthur Heymans Change-Id: Ief1f9d2175fe1375fe6ac4bb0765b00513321fa6 Reviewed-on: https://review.coreboot.org/c/coreboot/+/75356 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons Reviewed-by: Elyes Haouas --- src/soc/sifive/fu540/ux00ddr.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/soc/sifive/fu540/ux00ddr.h b/src/soc/sifive/fu540/ux00ddr.h index bf856f3621..d468a8ede7 100644 --- a/src/soc/sifive/fu540/ux00ddr.h +++ b/src/soc/sifive/fu540/ux00ddr.h @@ -148,9 +148,9 @@ static inline uint64_t ux00ddr_phy_fixup(size_t ahbregaddr) { size_t ddrphyreg = ahbregaddr + 0x2000; - uint64_t fails=0; + // uint64_t fails=0; uint32_t slicebase = 0; - uint32_t dq = 0; + // uint32_t dq = 0; // check errata condition for (uint32_t slice = 0; slice < 8; slice++) { @@ -175,7 +175,7 @@ static inline uint64_t ux00ddr_phy_fixup(size_t ahbregaddr) { // print error message on failure if (failc0 || failc1) { //if (fails==0) uart_puts((void*) UART0_CTRL_ADDR, "DDR error in fixing up \n"); - fails |= (1<