From patchwork Fri Jan 13 17:23:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9516089 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3679E6077E for ; Fri, 13 Jan 2017 17:26:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25B2128710 for ; Fri, 13 Jan 2017 17:26:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1AC7228763; Fri, 13 Jan 2017 17:26:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D59528767 for ; Fri, 13 Jan 2017 17:26:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750932AbdAMR0p (ORCPT ); Fri, 13 Jan 2017 12:26:45 -0500 Received: from mout.web.de ([217.72.192.78]:63549 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750789AbdAMRZG (ORCPT ); Fri, 13 Jan 2017 12:25:06 -0500 Received: from [192.168.1.2] ([78.49.203.248]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lpf3q-1cygpn0aT0-00fOcw; Fri, 13 Jan 2017 18:23:17 +0100 Subject: [PATCH 13/17] spi/topcliff-pch: Delete an unnecessary return statement in two functions To: linux-spi@vger.kernel.org, Mark Brown References: <1413e173-dbac-7a6e-09cb-2287300a335e@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Message-ID: <64b7bf49-57fc-32a9-17e4-1b26b99bff13@users.sourceforge.net> Date: Fri, 13 Jan 2017 18:23:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <1413e173-dbac-7a6e-09cb-2287300a335e@users.sourceforge.net> X-Provags-ID: V03:K0:KhJYNlOOhz7Jbkr1X5Ha4YfKnzPTTWJETfHJ6IFv9OoBTs9dsXN hoAygGaojxudcneTrEbV1nj34hM7vlKma9oud+fmQmTz4UXP6GE2eaLQUIOOon9qrgH/2Ib bTjAK0JuXJSP2sz7ujeOwEkXK8dJU+aUkvKVcdxNG9Gqa3zgWcV4TWg+9JEnCE5TNOIP76T lTt/i92JQxa54es4YqCrg== X-UI-Out-Filterresults: notjunk:1; V01:K0:KqtPv1HJftw=:t/u1QVDRIbwtpX9AXFYMvK elI7K4ke/CXTZMQ7xFDxfyfxObp6TbK/XXouIbWEIAlswR1G1D4vFqQyoOOFsuuD1Hu4/QVYJ ro+43ZSrG/ozqQnjDjueiQEfhsQhYjFpuKFAPLaNqpaqtLTTIRHDZQB7jldP2GhYsVsofeM6J Qz911N6oxLLqbDSUQ9MhpBokdfxJsnVsR/xvnt3L3IwWfA3121r0I1yTR7nR8cPL6uvfxb4Qh xVGwf3BMHjU3C2dGxRCwsXtPAKsTvcvPsEpNSMhqyCxjQ7QEf/8CsA20z6LXQu+T3G+5qr8a0 p+mkAMEiQqWIwLS7jqaPagegQqbPkMsHdWG7Q+J2XXIOI9ri+FK2myltZv2Qz6TEKzhjezuYB CngEvN5ETb3PSdj2EcECqJejSB5kHXQvJsTJdYEB516HlqDvvsHz8KgMzlK2wKpFiMzskUBXc 5joHKgWxfIZjGnn7i0rPodAfiaL5Q/9Orl5YVoiyCNljE1pecGfs3llqvcMbEQOENnIpfmmhB SDyINcqKz7DLXKau3bpGXs06m8vckPEB6wvLZyIJf/AXlO0tzhwfOxPvnniRsyCz7Wiwz+Cw5 7Cig+la0V2O7YgAcip5CSKEQ6/v1OAq6c3WL3/xx49B0tyAbML1Pgl7pEqdhF4Wdj9uVkvl3K kMr+dzxo+QPE46qJ1yacDpv4mxKhTzoRcW2Tqw9E8xXi4HsP3QwLCzOFGIK+g8r6vBq0QgGPq UO7KX3Or6h0Z/wwNBR2b1wQNHHNTT/BrcaNudFyrfRYon9uC+cKnzlbTk6xBomxBHLpPO1tAf IS5yw9k Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Fri, 13 Jan 2017 15:57:03 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: void function return statements are not generally useful Thus remove such statements here. Signed-off-by: Markus Elfring --- drivers/spi/spi-topcliff-pch.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/spi/spi-topcliff-pch.c b/drivers/spi/spi-topcliff-pch.c index 4bba39e70c7b..0a876311b67b 100644 --- a/drivers/spi/spi-topcliff-pch.c +++ b/drivers/spi/spi-topcliff-pch.c @@ -915,7 +915,6 @@ static void pch_spi_release_dma(struct pch_spi_data *data) dma_release_channel(dma->chan_rx); dma->chan_rx = NULL; } - return; } static void pch_spi_handle_dma(struct pch_spi_data *data, int *bpw) @@ -1292,7 +1291,6 @@ static void pch_free_dma_buf(struct pch_spi_board_data *board_dat, if (dma->rx_buf_dma) dma_free_coherent(&board_dat->pdev->dev, PCH_BUF_SIZE, dma->rx_buf_virt, dma->rx_buf_dma); - return; } static void pch_alloc_dma_buf(struct pch_spi_board_data *board_dat,