Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp365244pxk; Wed, 9 Sep 2020 07:26:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJya1UuM5RPeidlgtNxBEuZA4XUGpFs6IsjhWwhkBTbZ50M0Bqp4Siailt1YAIiPE50Fv9MG X-Received: by 2002:a17:906:3e90:: with SMTP id a16mr3674661ejj.363.1599661602271; Wed, 09 Sep 2020 07:26:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599661602; cv=none; d=google.com; s=arc-20160816; b=askKAd9AEJq+jAzLhPh/PmmUJhkblx131RDYm1Ver3biNeMPbVWWm6cnPXd2Ejh0Ow nn+AF+ec4bYgqgIPfO9zLmxbKyPPKE8UnoUvwCe+jhG/IirGmdG5wrqoPrDQLPTuib1Y SmVGFHRqtgBAGGY6MlcnCzxWIla3mqUZObY1pI3vFbPMOQW7JG8ae1+hGmkG/hweUdRX 8/XHc2vyVZbSR77cO3HkC6pFBpE6oFhd+6s8cThTO5ONS7ZouKmdzHKatIeLyTkJYHNq 2qgmNsZeiul6+/6z36wqPtsHbh1UsYCzC9PZs3OLXX/igQTSwT6+lZeuP30YidN1c3s9 VGMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=AF7AvMvinnpsqv3b91+UpTCC96yM9uCXbU2TTVytgd0=; b=m0VTZnLAsYuQ6UaKXZqWINvGTrAzlEEi18axRyIrhROJeS8q7wc1g+m7bJUI5ryCGC Cf+Xy4IOwfxWF8sxd4g9yumdInQrE+IeTSdTU5NnhrakWprjGGFNLYSzyXdnS5MmBrJP HLeQ+hEQqrDtPXBA1t9V33z2pX14CMPxJfLhGQjVlyoGBS1l3xv0ifvJgFyuSMeVXdlE hwVyruDo1joP0+6KrBh3Ebfn3ApK+3q8g+2m/KRg3l8cUGgcaQ6Bj746kvuXEdKg13b1 OiOvnYahFnaFbw7nDeYjXN4GnT3hDWx9gUjfKshmQ3sZOoJpHkCzdeqNa6+jvgbPyznJ 8PpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ch14si1677834ejb.360.2020.09.09.07.26.18; Wed, 09 Sep 2020 07:26:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730393AbgIIOXh (ORCPT + 99 others); Wed, 9 Sep 2020 10:23:37 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:57446 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730223AbgIINAj (ORCPT ); Wed, 9 Sep 2020 09:00:39 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 571406D6653046DFA233; Wed, 9 Sep 2020 21:00:33 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Wed, 9 Sep 2020 21:00:27 +0800 From: Zheng Bin To: , , , , , , CC: , Subject: [PATCH -next 6/8] drm/amd/amdgpu: fix comparison pointer to bool warning in uvd_v6_0.c Date: Wed, 9 Sep 2020 21:07:18 +0800 Message-ID: <20200909130720.105234-7-zhengbin13@huawei.com> X-Mailer: git-send-email 2.26.0.106.g9fadedd In-Reply-To: <20200909130720.105234-1-zhengbin13@huawei.com> References: <20200909130720.105234-1-zhengbin13@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes coccicheck warning: drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c:1243:14-25: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c index 0a880bc101b8..ed30fb48b9db 100644 --- a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +++ b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c @@ -1240,8 +1240,8 @@ static int uvd_v6_0_process_interrupt(struct amdgpu_device *adev, break; } - if (false == int_handled) - DRM_ERROR("Unhandled interrupt: %d %d\n", + if (!int_handled) + DRM_ERROR("Unhandled interrupt: %d %d\n", entry->src_id, entry->src_data[0]); return 0; -- 2.26.0.106.g9fadedd