From e19d33bf72a9db2475878fcf4787eaf3ca2dcd14 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Fri, 19 May 2023 12:16:07 +0200 Subject: drivers/spi/spi_sdcard.c: Fix set but unused variable Signed-off-by: Arthur Heymans Change-Id: Ib8ee07aefdb32b8efe719f484e242b6129596842 Reviewed-on: https://review.coreboot.org/c/coreboot/+/75355 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/drivers/spi/spi_sdcard.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/drivers') diff --git a/src/drivers/spi/spi_sdcard.c b/src/drivers/spi/spi_sdcard.c index e930b50b13..36d882d9e1 100644 --- a/src/drivers/spi/spi_sdcard.c +++ b/src/drivers/spi/spi_sdcard.c @@ -7,15 +7,10 @@ #include #include -//#define SPI_SDCARD_DEBUG +#define SPI_SDCARD_DEBUG 0 -#ifdef SPI_SDCARD_DEBUG #define dprintk(fmt, args...) \ - printk(BIOS_DEBUG, fmt, ##args) -#else -#define dprintk(fmt, args...) \ - do {} while (0) -#endif + do { if (SPI_SDCARD_DEBUG) { printk(BIOS_DEBUG, fmt, ##args); }} while (0) #define SDCARD_TYPE_SDSC 1 #define SDCARD_TYPE_SDHC 2 -- cgit v1.2.3