diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2023-05-19 12:16:07 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-05-26 14:53:06 +0000 |
commit | e19d33bf72a9db2475878fcf4787eaf3ca2dcd14 (patch) | |
tree | 2483eb9c9636dcad708cd7a92e30a42ee27d26f5 /src/drivers | |
parent | 21594fd161957920a0bce94e24a52e9cab7f5397 (diff) |
drivers/spi/spi_sdcard.c: Fix set but unused variable
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Change-Id: Ib8ee07aefdb32b8efe719f484e242b6129596842
Reviewed-on: https://review.coreboot.org/c/coreboot/+/75355
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/spi/spi_sdcard.c | 9 |
1 files changed, 2 insertions, 7 deletions
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 <commonlib/helpers.h> #include <console/console.h> -//#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 |