Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752387AbdLISDf (ORCPT ); Sat, 9 Dec 2017 13:03:35 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:37343 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751942AbdLISDF (ORCPT ); Sat, 9 Dec 2017 13:03:05 -0500 X-Google-Smtp-Source: AGs4zMaBsoCeFl2E6aravU/q4F15c15lfmAMfUl6T1n5yl2Y0kARvEc67QWdh2Vf21JYWsiJredyHA== From: =?UTF-8?q?Simon=20Sandstr=C3=B6m?= To: gregkh@linuxfoundation.org Cc: marcin.s.ciupak@gmail.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] staging: pi433: Remove unnecessary #ifdef DEBUG around dev_dbg Date: Sat, 9 Dec 2017 19:02:57 +0100 Message-Id: <20171209180257.24240-4-simon@nikanor.nu> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171209180257.24240-1-simon@nikanor.nu> References: <20171209180257.24240-1-simon@nikanor.nu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 918 Lines: 33 dev_dbg() already depends on DEBUG. Signed-off-by: Simon Sandström --- 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 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; } -- 2.11.0