From patchwork Thu Aug 16 06:46:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengguang Wu X-Patchwork-Id: 10567001 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9E8D4139B for ; Thu, 16 Aug 2018 06:46:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 38FE02ABD4 for ; Thu, 16 Aug 2018 06:46:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2BF922ABF8; Thu, 16 Aug 2018 06:46:22 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 A6C7D2ABD4 for ; Thu, 16 Aug 2018 06:46:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729584AbeHPJmi (ORCPT ); Thu, 16 Aug 2018 05:42:38 -0400 Received: from mga12.intel.com ([192.55.52.136]:47374 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726133AbeHPJmi (ORCPT ); Thu, 16 Aug 2018 05:42:38 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Aug 2018 23:46:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,246,1531810800"; d="scan'208";a="255271580" Received: from bee.sh.intel.com (HELO lkp-server01) ([10.239.97.14]) by fmsmga006.fm.intel.com with ESMTP; 15 Aug 2018 23:46:17 -0700 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1fqC2y-0004ea-Tf; Thu, 16 Aug 2018 14:46:16 +0800 Date: Thu, 16 Aug 2018 14:46:02 +0800 From: kbuild test robot To: Roy Im Cc: kbuild-all@01.org, Dmitry Torokhov , Rob Herring , Mark Rutland , Support Opensource , devicetree@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Input: fix boolreturn.cocci warnings Message-ID: <20180816064602.GA94754@cairo> References: <662cd241e04a1e033c87d1a94c594740b594b0b6.1534384964.git.Roy.Im@diasemi.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <662cd241e04a1e033c87d1a94c594740b594b0b6.1534384964.git.Roy.Im@diasemi.com> User-Agent: Mutt/1.5.23 (2014-03-12) 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: kbuild test robot drivers/input/misc/da7280.c:116:9-10: WARNING: return of 0/1 in function 'da7280_volatile_register' 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: a067f5d53e35 ("Input: new da7280 haptic driver") CC: Roy Im Signed-off-by: kbuild test robot --- da7280.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/input/misc/da7280.c +++ b/drivers/input/misc/da7280.c @@ -113,9 +113,9 @@ static bool da7280_volatile_register(str case DA7280_IRQ_EVENT_SEQ_DIAG: case DA7280_IRQ_STATUS1: case DA7280_TOP_CTL1: - return 1; + return true; default: - return 0; + return false; } }