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>
This commit is contained in:
Arthur Heymans 2023-05-19 12:16:07 +02:00 committed by Felix Held
parent 21594fd161
commit e19d33bf72
1 changed files with 2 additions and 7 deletions

View File

@ -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