From b01c3553a91332f326222597efdeb61bc50249e7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Simon=20Sandstr=C3=B6m?= Date: Sat, 9 Dec 2017 19:02:57 +0100 Subject: [PATCH] staging: pi433: Remove unnecessary #ifdef DEBUG around dev_dbg MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit dev_dbg() already depends on DEBUG. Signed-off-by: Simon Sandström Signed-off-by: Greg Kroah-Hartman --- drivers/staging/pi433/rf69.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index 04a7442..6e38e6a 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -767,9 +767,7 @@ int rf69_read_fifo (struct spi_device *spi, u8 *buffer, unsigned int size) int retval; if (size > FIFO_SIZE) { -#ifdef DEBUG dev_dbg(&spi->dev, "read fifo: passed in buffer bigger then internal buffer\n"); -#endif return -EMSGSIZE; } @@ -801,9 +799,7 @@ int rf69_write_fifo(struct spi_device *spi, u8 *buffer, unsigned int size) u8 local_buffer[FIFO_SIZE + 1]; if (size > FIFO_SIZE) { -#ifdef DEBUG dev_dbg(&spi->dev, "read fifo: passed in buffer bigger then internal buffer\n"); -#endif return -EMSGSIZE; } -- 2.7.4