summaryrefslogtreecommitdiffstats
path: root/drivers/staging/pi433
diff options
context:
space:
mode:
authorSimon Sandström2017-12-09 19:02:57 +0100
committerGreg Kroah-Hartman2017-12-13 12:53:56 +0100
commitb01c3553a91332f326222597efdeb61bc50249e7 (patch)
tree51962fe5db72917dfda7139e56585c4c3f11d8b9 /drivers/staging/pi433
parentstaging: pi433: Remove function entry dev_dbg() (diff)
downloadkernel-qcow2-linux-b01c3553a91332f326222597efdeb61bc50249e7.tar.gz
kernel-qcow2-linux-b01c3553a91332f326222597efdeb61bc50249e7.tar.xz
kernel-qcow2-linux-b01c3553a91332f326222597efdeb61bc50249e7.zip
staging: pi433: Remove unnecessary #ifdef DEBUG around dev_dbg
dev_dbg() already depends on DEBUG. Signed-off-by: Simon Sandström <simon@nikanor.nu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/pi433')
-rw-r--r--drivers/staging/pi433/rf69.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c
index 04a74423c325..6e38e6a515a4 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;
}