From patchwork Mon Aug 1 22:55:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengguang Wu X-Patchwork-Id: 9254929 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 346D66075F for ; Mon, 1 Aug 2016 22:56:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 26FEE284B6 for ; Mon, 1 Aug 2016 22:56:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1A4C4284CC; Mon, 1 Aug 2016 22:56:58 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6EEF8284B6 for ; Mon, 1 Aug 2016 22:56:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2A3528901E; Mon, 1 Aug 2016 22:56:51 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 2023B6E3C9 for ; Mon, 1 Aug 2016 22:56:48 +0000 (UTC) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP; 01 Aug 2016 15:56:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,457,1464678000"; d="scan'208";a="742819075" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by FMSMGA003.fm.intel.com with ESMTP; 01 Aug 2016 15:56:46 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1bUM8O-000Pfs-H6; Tue, 02 Aug 2016 06:56:32 +0800 Date: Tue, 2 Aug 2016 06:55:29 +0800 From: kbuild test robot To: Ken Wang Subject: [PATCH] drm/amdgpu: fix boolreturn.cocci warnings Message-ID: <20160801225529.GA43256@lkp-hsx03> References: <201608020625.ckEcdIIk%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201608020625.ckEcdIIk%fengguang.wu@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Cc: Alex Deucher , kbuild-all@01.org, dri-devel@lists.freedesktop.org, Christian =?iso-8859-1?Q?K=F6nig?= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP drivers/gpu/drm/amd/amdgpu/si.c:1017:8-9: WARNING: return of 0/1 in function 'si_read_disabled_bios' 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 CC: Ken Wang Signed-off-by: Fengguang Wu --- si.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/amdgpu/si.c +++ b/drivers/gpu/drm/amd/amdgpu/si.c @@ -1014,7 +1014,7 @@ static int si_read_register(struct amdgp static bool si_read_disabled_bios(struct amdgpu_device *adev) { - return 0; + return false; } //xxx: not implemented static int si_asic_reset(struct amdgpu_device *adev)