From patchwork Sun Jan 21 20:29:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10177089 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 BF962601E7 for ; Sun, 21 Jan 2018 20:29:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B06C826224 for ; Sun, 21 Jan 2018 20:29:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A3A4626E3C; Sun, 21 Jan 2018 20:29:37 +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 546CE26224 for ; Sun, 21 Jan 2018 20:29:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751253AbeAUU31 (ORCPT ); Sun, 21 Jan 2018 15:29:27 -0500 Received: from mout.web.de ([212.227.17.12]:51223 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750996AbeAUU30 (ORCPT ); Sun, 21 Jan 2018 15:29:26 -0500 Received: from [192.168.1.3] ([77.181.34.161]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MCImL-1eUneS0Pqb-0097EI; Sun, 21 Jan 2018 21:29:21 +0100 Subject: [PATCH 2/3] Input: cyttsp4_core: Delete an unnecessary return statement in three functions From: SF Markus Elfring To: linux-input@vger.kernel.org, Dmitry Torokhov , Ferruh Yigit Cc: LKML , kernel-janitors@vger.kernel.org References: <61183426-0b2a-4b93-933c-a2dfd487d92b@users.sourceforge.net> Message-ID: Date: Sun, 21 Jan 2018 21:29:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <61183426-0b2a-4b93-933c-a2dfd487d92b@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:8uXvFhR5xPvuwmuZYehA5UIPw4PL0XhBFa/xfKprUP9glEQ0FtF wEYQ10mbazVI9aAAZp7G/vIjzrQf80QqNNjv8dVZzrqsY1oId2VacraPlHlFKjqhdvzLBHe GcDLEpThpM19YUjX/2qDNzvNGHm3m2woKG3o2N+X3gBbSuE+S2dKWmCxP4ahI6m2T1R4Q80 B2Uad2so7avImiFImyStQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:H3SmFNq/HCk=:UncWhGDKBSEtsEMj1cV2Xk 3WTyJryqqg19NuxoETG4fLGvi1AuYdOGGsKtFx+T1bipMqr43GJ+rzo35vmjU+TUO8X9Vbku4 BO9RJT6CQfHd/4FT5CW/7Q9Sk66Wv8Ed6a0uGC9svAaXGkEAHAv0ddkfcVOZMoosBozltsDvC Nu2DkfS+6gsGYoUyRqeW8pn92LwuvvjN0giGuOWUqQKoGxjwAhds01wl40vd6f/6pt1IotEG8 ihCg3ofnSYMuZr9apKd0niip7R1UDLz/IZCM3/3UKpmwgShMKXIDtNPgHlpoWkalwJ1kbE1B8 xxG6waq6P0IjK/wGe80io6hVlzZ0Ga9zEBUiA5NhLsjRkqjy9u+8KbbB0qGAVbYsUeZ1WX2vd MEbDkGFF/u4xtKf3Hd0FxNgIde9M3tax2bWy4ngfe4oVtuSqAN5XkZlBiiP10JI70lGWLi3+N GKZq6WsenawBpESpma54I7yyfd2FkijBa4c/BpTWM2yZEExnz7zi2Dkpy9q6DtRT0liI/W8jo 7/LRv58XogRSRmCynkVukIQgLe9v4np03Q6/nawXo2mEbfaSZ8P5hpZXmOsw2mqZMegXAdPE0 37i2g5PV8pK04qieok9YdcXc+rSgSa9I1dUiCk9UCruBGKGjCONBPF16YFdOI1kpaclHeICB+ FR/FCS4pgHdWu/hLdtRYStC+qH+AfdbXh7wU2PLskbDA5qBLZtBI7lGIglYgm7CSIiu2rVwgs clEiFz2Eg1bm/MOEGrh67c8Vl774DHOQHf81zHV7bCOMadiSG11Thx1ywPzq19F3vHL11hYv3 MkUJcl6BrIzf+MDuSV0L1H1MSnM2VRGPvXUEBfMgBARVPSU+ck= Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Sun, 21 Jan 2018 21:13:21 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: void function return statements are not generally useful Thus remove such a statement in the affected functions. Signed-off-by: Markus Elfring --- drivers/input/touchscreen/cyttsp4_core.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/input/touchscreen/cyttsp4_core.c b/drivers/input/touchscreen/cyttsp4_core.c index f0bf3cc20e9d..35f48b66ff36 100644 --- a/drivers/input/touchscreen/cyttsp4_core.c +++ b/drivers/input/touchscreen/cyttsp4_core.c @@ -956,8 +956,6 @@ static void cyttsp4_get_mt_touches(struct cyttsp4_mt_data *md, int num_cur_tch) cyttsp4_final_sync(md->input, si->si_ofs.tch_abs[CY_TCH_T].max, ids); md->num_prv_tch = num_cur_tch; - - return; } /* read xy_data for all current touches */ @@ -1272,8 +1270,6 @@ static void cyttsp4_watchdog_timer(struct timer_list *t) dev_vdbg(cd->dev, "%s: Watchdog timer triggered\n", __func__); schedule_work(&cd->watchdog_work); - - return; } static int cyttsp4_request_exclusive(struct cyttsp4 *cd, void *ownptr, @@ -1492,7 +1488,6 @@ static void cyttsp4_watchdog_work(struct work_struct *work) cyttsp4_start_wd_timer(cd); cyttsp4_timer_watchdog_exit_error: mutex_unlock(&cd->system_lock); - return; } static int cyttsp4_core_sleep_(struct cyttsp4 *cd)