staging: pi433: Remove unnecessary #ifdef DEBUG around dev_dbg
authorSimon Sandström <simon@nikanor.nu>
Sat, 9 Dec 2017 18:02:57 +0000 (19:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Dec 2017 11:53:56 +0000 (12:53 +0100)
dev_dbg() already depends on DEBUG.

Signed-off-by: Simon Sandström <simon@nikanor.nu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/pi433/rf69.c

index 04a74423c325fcc5c50fc367c8bbbbfb24e33dfb..6e38e6a515a42679594e1917a6ac4cfe0893424d 100644 (file)
@@ -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;
        }