Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755041AbaFWOU7 (ORCPT ); Mon, 23 Jun 2014 10:20:59 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:56881 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754488AbaFWOU5 (ORCPT ); Mon, 23 Jun 2014 10:20:57 -0400 From: Raphael Poggi To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Raphael Poggi , =?UTF-8?q?Rapha=C3=ABl=20Poggi?= Subject: [PATCH 2/2] staging: lirc: remove return void function Date: Mon, 23 Jun 2014 16:21:21 +0200 Message-Id: <1403533281-8091-2-git-send-email-poggi.raph@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1403533281-8091-1-git-send-email-poggi.raph@gmail.com> References: <1403533281-8091-1-git-send-email-poggi.raph@gmail.com> 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 From: Raphael Poggi This patch fix checkpath "WARNING: void function return statements are not generally useful". The removed return were useless in that case. Signed-off-by: Raphaƫl Poggi --- drivers/staging/media/lirc/lirc_imon.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/staging/media/lirc/lirc_imon.c b/drivers/staging/media/lirc/lirc_imon.c index f8c3375..96c76b3 100644 --- a/drivers/staging/media/lirc/lirc_imon.c +++ b/drivers/staging/media/lirc/lirc_imon.c @@ -482,8 +482,6 @@ static void usb_tx_callback(struct urb *urb) /* notify waiters that write has finished */ atomic_set(&context->tx.busy, 0); complete(&context->tx.finished); - - return; } /** @@ -548,7 +546,6 @@ static void ir_close(void *data) } mutex_unlock(&context->ctx_lock); - return; } /** @@ -573,7 +570,6 @@ static void submit_data(struct imon_context *context) lirc_buffer_write(context->driver->rbuf, buf); wake_up(&context->driver->rbuf->wait_poll); - return; } static inline int tv2int(const struct timeval *a, const struct timeval *b) @@ -709,8 +705,6 @@ static void usb_rx_callback(struct urb *urb) } usb_submit_urb(context->rx_urb, GFP_ATOMIC); - - return; } /** -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/