Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1580836pxb; Thu, 4 Mar 2021 15:23:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwyEutk/qkTonPgUUyMxR7IwtGpOfnsnplFlytKzIn9Rabfm3MeOBNBFiCBpz5m2SC2LeSt X-Received: by 2002:a17:906:380c:: with SMTP id v12mr6644964ejc.65.1614900239003; Thu, 04 Mar 2021 15:23:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614900238; cv=none; d=google.com; s=arc-20160816; b=hTy8+1MgD0djek+1vielLeiDAzjjB7t8qlfPGRgEQuiiRcf+TGMHvKL7LmrUdh3UV4 mHv6/H/NP7gSLcON8s5jGkH84GUZ+fVlbhI2Pxas09HVdv5/bSqnG6HsDMtrA0DDfre0 VD6iLgBM5CRtUdJw8Ob5/OLVccNKWXwI3d/1lNprMjz0BFaWNhbyow3WdpVPBFIbAe/X H5CzhUFhhe7ZP/pKzUeM1rwe40wRuEBsEALaNE1jDzQ/WDb1Vh89IowbLBXlp/CRxZ8y UO9ww3y0kRiRtwh1cTNU1WXVRlDU9OanJVYidyrc9VhUtG83CEKerfYF8Ygfqq0L4Q5h Kn0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qt5wXwklMsm6s5Zb+eD9YN9oX2rhIgEmQ1SsEPhvWyc=; b=iM3y7XRhshwIqvywGiKTOCRRD0a3OExbA0JGvy8Nws4SC7z+JhOhEisWTeMnE4pgaJ kHlbv+I5zuKDu5DSrE1Z/GuW1AisxFOi22k6XlSuDSjALU8euDb5BNgbwp2X9QOr8gMM Jr7EAYMiTUvGp1YvmSjk9nsU7XzGBjoRzbMNlHtSE7wobpCAOEkWs8CCcW95ae7sbZqT yuWAbv+MWAM2gsd55OCH25irLbYr/0++ksmTywCYtEQjgdSmATMN2XW+6cr1F/rNe4ZW bPHsjSgSbqwFI61zSKt9MdIwsvfT2PrU503TGxcr8HVffqeMlAtlYL1gmDKjFhQqGACZ IzKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nVMMGUMo; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c9si358812ejm.215.2021.03.04.15.23.36; Thu, 04 Mar 2021 15:23:58 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nVMMGUMo; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383350AbhCCR6o (ORCPT + 99 others); Wed, 3 Mar 2021 12:58:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244846AbhCCO7G (ORCPT ); Wed, 3 Mar 2021 09:59:06 -0500 Received: from mail-oo1-xc33.google.com (mail-oo1-xc33.google.com [IPv6:2607:f8b0:4864:20::c33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C00B6C0613E3; Wed, 3 Mar 2021 06:57:25 -0800 (PST) Received: by mail-oo1-xc33.google.com with SMTP id x10so5748623oor.3; Wed, 03 Mar 2021 06:57:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qt5wXwklMsm6s5Zb+eD9YN9oX2rhIgEmQ1SsEPhvWyc=; b=nVMMGUMobAMEySPNKmp/GvwtfCn8twa9qGl3V2/yBfUPYitFWdp/2Ulqi+3lBJV7jk FFrhkBwRkcUxEzdMjR0W52HDWRRBo96sj9s4REwN5U6mknHKvkvGlucquRTtQFIqEsCq N+auS/TTDoqNWo4tbTMBdHRC6oIr7hbdFe0fY+D/2LwAK3RL9SSU7SHPDCJlyphKjbEy 1X1eOMKNy2z7Jzb2DyxS3Mh1xRsTyBtxhDYLQ98WQtLZq0eYPZwPmE1JJkKfpmVRytoC O9eDVSxANWIvF8tjvL6P6LxkF32Lba6EwwdVCk6dVlfxcnA3X3JNIOQqBK/ID71yZRjZ nzfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qt5wXwklMsm6s5Zb+eD9YN9oX2rhIgEmQ1SsEPhvWyc=; b=OdcJ/9ObL00ql/iSd9RZtqLcxJSnaGcb95+mwlHb9HrVL8dqnk5SwgqHFyLO9Gliku CksOa4/xc/AyDLSAP9RPU7WMRnn93+qtm0SsLZ68fijHgItVSUXoq7og+B5rov9YOwcW qZZA3Tw6B67y7cm17kM+YBrurmHftDIXY40Jj17+CQMDMXUTrKbM+KrTLd2mGpIOT9DZ PiEZvz0UWnHgirCUxS9auou781CdiJdE+0VtabdSMc8PIWoKag1jykhhGFeZfXtNFBv+ 1p5F+v0U+3rP0g9s9IPLZFelC9LWdqeD+tAkSuntRWcvs/8VZ709USoNzKfURdqHjHFu uHXA== X-Gm-Message-State: AOAM5327n/jfpWCPpYcrWkyS5nB9QMa+XfEinvCRjbNGWcYFxMAG2Qop jstmsgmd8emtzJO/evBooIZV0FmEk2XMmdBLwSQ= X-Received: by 2002:a4a:88ee:: with SMTP id q43mr21478044ooh.61.1614783445212; Wed, 03 Mar 2021 06:57:25 -0800 (PST) MIME-Version: 1.0 References: <1614763065-114245-1-git-send-email-jiapeng.chong@linux.alibaba.com> In-Reply-To: <1614763065-114245-1-git-send-email-jiapeng.chong@linux.alibaba.com> From: Alex Deucher Date: Wed, 3 Mar 2021 09:57:13 -0500 Message-ID: Subject: Re: [PATCH] drm/amdgpu: Remove unnecessary conversion to bool To: Jiapeng Chong Cc: "Deucher, Alexander" , Dave Airlie , LKML , Maling list - DRI developers , "moderated list:DMA BUFFER SHARING FRAMEWORK" , amd-gfx list , Christian Koenig , linux-media Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 3, 2021 at 4:18 AM Jiapeng Chong wrote: > > Fix the following coccicheck warnings: > > ./drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c:2252:40-45: WARNING: conversion > to bool not needed here. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c > index c8c22c1..00d3773 100644 > --- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c > +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c > @@ -2249,7 +2249,7 @@ static int sdma_v4_0_set_powergating_state(void *handle, > case CHIP_RAVEN: > case CHIP_RENOIR: > sdma_v4_1_update_power_gating(adev, > - state == AMD_PG_STATE_GATE ? true : false); > + state == AMD_PG_STATE_GATE); > break; > default: > break; > -- > 1.8.3.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel