Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1823050imm; Thu, 16 Aug 2018 03:16:58 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzcVb6RGCwnJOgdgpQIv2Z5EGGUq/2MOfBU9hzKB3tOp1t92KX1spk0uvkNd93RhT/MtHtc X-Received: by 2002:a17:902:b709:: with SMTP id d9-v6mr12726300pls.138.1534414618142; Thu, 16 Aug 2018 03:16:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534414618; cv=none; d=google.com; s=arc-20160816; b=ot4TeW7keDoHHXwPW9Cs3gXurtKG4PmPC4NORC9XGt0ZQV7m0BU7wCnNZnavorjxpJ xFgOSHlrbGJKRphbsBElUEcfSaODv+FN03t/d+tzpcT1e4Ue4zsrQMQUgmU+hEI6gayC hbQOXs48DgPpyAoakg/D+Ka9N5VQ8p+B4r5PI+mtJ5hNZaFk3BcaiL2EEM+BG84uly3N 8wtiI0AUQjDoDzRcIDZvxJrPWJkWFW5AVt0nZwRMKmkEc9rmBYk9r8OcXQu1PC1buw7s TS2sq7kYFzzD5IXjvL8bd0tGhDgnuajQQ4bR9UGTMIS+yInu/Fs3+7/q/Fs6NlbQvoH8 9tdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=xi5VDe5MGXCW8yz7K0MU7Ky5x+MIsOvY/vphw6A9gYU=; b=eXLLyFPwmSNTabQGHkJ4QNH2wk28XSzlpI1l2HdwKgZtjF2+ic0xwgluQWrYdQNwjL aC7BQkYtsLjH2ijs1GIIMPUNkSnQIpbcvjttbZEbB4URiF1RydIlulkkN+GAlF/LNNya A4DUumKXh4uqpZd3q/dHtQwQYlIpj1WyqqPGuPeaR+qg9ZX6AP7OEVRJ4jDwSTa3uSTN NyZ7Bh2zNK/kg1vJxTnoLLfAy/WQ1TA34T9aMwcKqWux2blpz6CUWVYoF0VtX3w777RB tn+jKGKxtnoOpX7Nuu4XvNfSGrbQcGvhXU+d/dDTa2cMQWBI2Pin9H4jISo6RmT+DzGz Sm3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k6-v6si20831300pls.393.2018.08.16.03.16.42; Thu, 16 Aug 2018 03:16:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389015AbeHPJmi (ORCPT + 99 others); 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <662cd241e04a1e033c87d1a94c594740b594b0b6.1534384964.git.Roy.Im@diasemi.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; } }