From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 949B4C433E0 for ; Thu, 18 Feb 2021 11:30:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 44A3564E6F for ; Thu, 18 Feb 2021 11:30:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231152AbhBRLYb (ORCPT ); Thu, 18 Feb 2021 06:24:31 -0500 Received: from mga02.intel.com ([134.134.136.20]:2731 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232535AbhBRKJ1 (ORCPT ); Thu, 18 Feb 2021 05:09:27 -0500 IronPort-SDR: XXq0gTHrTNYKrGxMImcQEWBcIRxnQ1lTjMuCrHl8N29pgPgMqs5fzKfljF/PQ9nDc0+UiDx8qH B1JjJWWt5hKw== X-IronPort-AV: E=McAfee;i="6000,8403,9898"; a="170587708" X-IronPort-AV: E=Sophos;i="5.81,186,1610438400"; d="scan'208";a="170587708" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Feb 2021 02:00:38 -0800 IronPort-SDR: s1WG0DZzy9xrUmatwi8UX2FaeZy7aaOeEXENpuylMmbWq69GBkSyy8Sav3oRy4XG0C5OnDRf2e Ta+Rww9xE7yA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,186,1610438400"; d="scan'208";a="362411541" Received: from lkp-server02.sh.intel.com (HELO cd560a204411) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 18 Feb 2021 02:00:36 -0800 Received: from kbuild by cd560a204411 with local (Exim 4.92) (envelope-from ) id 1lCg6t-0009au-RZ; Thu, 18 Feb 2021 10:00:35 +0000 Date: Thu, 18 Feb 2021 17:59:53 +0800 From: kernel test robot To: Michael Srba Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Dmitry Torokhov , linux-input@vger.kernel.org Subject: [PATCH] Input: fix boolreturn.cocci warnings Message-ID: <20210218095953.GA24768@4e7c6a388622> References: <202102181739.Tb984rzG-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202102181739.Tb984rzG-lkp@intel.com> X-Patchwork-Hint: ignore User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: kernel test robot drivers/input/touchscreen/zinitix.c:250:8-9: WARNING: return of 0/1 in function 'zinitix_init_touch' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci Fixes: 26822652c85e ("Input: add zinitix touchscreen driver") CC: Michael Srba Reported-by: kernel test robot Signed-off-by: kernel test robot --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f40ddce88593482919761f74910f42f4b84c004b commit: 26822652c85eff14e40115255727b2693400c524 Input: add zinitix touchscreen driver zinitix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/input/touchscreen/zinitix.c +++ b/drivers/input/touchscreen/zinitix.c @@ -247,7 +247,7 @@ static bool zinitix_init_touch(struct bt udelay(10); } - return 0; + return false; } static int zinitix_init_regulators(struct bt541_ts_data *bt541)