Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp728031pxb; Thu, 25 Feb 2021 13:34:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBk5Rss9qspnfq3KkMp3CoKz1b/pAMxmkaNlZPuwyoHEwcs3jkvxYchOcYqss/72XTouAl X-Received: by 2002:a05:6402:1c9c:: with SMTP id cy28mr5134742edb.275.1614288890533; Thu, 25 Feb 2021 13:34:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614288890; cv=none; d=google.com; s=arc-20160816; b=Ux0RJ2K+PBupDEQ+OuTfonrHfKWP1ds8XzpJXOwxOacO1d9KqRo9tJ2tCxfTqiTaHa 3bRgdeWndezCZbxfcM0TuQwmYEN790FXzbZqRTCHEfz7sKdksGiLoROHQw4xoDOWW6uF y4zYP4vmw7zWJVijdIlCEW/kf2A8NuxasPPDIJWYX7Sxy8sQZ4jKUsmxdLJBJl3Lm2+a TAlbtyhOn/sKICE1IIwFuqFU9S3qg166m5xyf+SQuNJs064+e+K4XahF9fhmd17w4HQN iWHOPamUVuuAwcsWLmkVoBgMk43UAzSb1wgIGNAHAnBa7phg3vov2D/Wcm6mHh5vIU+P ae7Q== 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=6iJBm8mwb9g0tbzXMjQMrV+sZ/dkoZZpwUu4VHqMwWs=; b=wI/GtwwbsKlzHgD+aoa5EsiVAldZ50beZiWWxcjhWgnbo3fiM/HP8BA4yqk+svRCyQ 8EiPm+A3aL93/zsDC3Dm7GT3dJZTWIiJ/U1tygNftNCUGEeMOeQUbZ/0tK9iz5lDHPwn Tp0tlO892vU74Tun88AYtEXUlJgRptnRq4Wcwc3dkxzyfa78+e7IuqcQn0H37Bdzpo5s DBU1cf+OiviMqx0QxXNj4nZCvlg4/9WhRcyrUHY7bvgOFCQuAd3R8rlQ3QUcpaSKWAff FMpk4lvKAxsN7IhGNV9sBhZdoadEyFQHJwESyQslbpOX9GBAzq4is19U2ZWXOipiG9Pt qD2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=saAXPMJH; 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 k2si4132710ejg.379.2021.02.25.13.34.28; Thu, 25 Feb 2021 13:34:50 -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=saAXPMJH; 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 S232403AbhBYVbp (ORCPT + 99 others); Thu, 25 Feb 2021 16:31:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232113AbhBYVbo (ORCPT ); Thu, 25 Feb 2021 16:31:44 -0500 Received: from mail-oo1-xc35.google.com (mail-oo1-xc35.google.com [IPv6:2607:f8b0:4864:20::c35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75435C061574 for ; Thu, 25 Feb 2021 13:31:04 -0800 (PST) Received: by mail-oo1-xc35.google.com with SMTP id n19so1722542ooj.11 for ; Thu, 25 Feb 2021 13:31:04 -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=6iJBm8mwb9g0tbzXMjQMrV+sZ/dkoZZpwUu4VHqMwWs=; b=saAXPMJHPwxOKN9qHujc6Ftk1IhGH00YldtkPbXQx3+a3J1pTSu/Yb2tjmjutFWZhA 8plWq8Ark/GQeSFOT0SmX0WX1aXZssKwlutFSMSKrHAKq5vZogkhREelec2C/gHuONws kqDP0VF2OJ0YyUDcV7kfHLPfr9zKm6IqeFy4MPOaqsXLInh23ohAnn/y1MwPj9grwvlD s9gRKC/NGiSUiV84o5AZmM/0O+SGlh0BBCdw2IZkEsxklVT4XQjQNc2cU145ft7uIKCh cxTi98cRbe773Fg1YJZgKY3LwBwqRbtqYCUPiajCu5hqKyfdat7rwFAieRk7vmAHz70c NVZw== 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=6iJBm8mwb9g0tbzXMjQMrV+sZ/dkoZZpwUu4VHqMwWs=; b=f3m19WTeFrqpKE5u7ABKSgz3fovh+kFWBlKHgdEhDDtTidd1wlGEjoychmSJG8Y9Bs rBDYlGOVS2SzHHgXpLSTAQim0T0CAmHz1Eir7R5P3kc1ZU4mdqjkxYoXUjMnDxvlON48 ssuTwGOmZDRP1iZ4daqDqa9XGp564uL072PFWPvKocHs/lk/IsN/Vg4jkX+/pgfy870H rSou1RRhyGSEMs6zpFaDjuSH65V2Aq5BKpC6MKFOXlrM/s7/vEcGMpWP5bqBBWLcUCIm sLyOzbi3AMwQTLzFUsTymA8VVkcK+GvidKybAbAJgFbCh0FILhhFE8lJlyy4mp5SPOCq /gMA== X-Gm-Message-State: AOAM531yp8194qHxyswGx28h/DplaJQeCWnZEj1Dn71fWDTJA4PYE3S6 hNcRpNwyIGQ9bQvxE82y2nR4YBFizyAadFKiMhM= X-Received: by 2002:a4a:88ee:: with SMTP id q43mr3928324ooh.61.1614288663762; Thu, 25 Feb 2021 13:31:03 -0800 (PST) MIME-Version: 1.0 References: <1614244742-67869-1-git-send-email-jiapeng.chong@linux.alibaba.com> In-Reply-To: <1614244742-67869-1-git-send-email-jiapeng.chong@linux.alibaba.com> From: Alex Deucher Date: Thu, 25 Feb 2021 16:30:52 -0500 Message-ID: Subject: Re: [PATCH] drm/amd/display: remove unnecessary conversion to bool To: Jiapeng Chong Cc: "Wentland, Harry" , "Leo (Sunpeng) Li" , LKML , amd-gfx list , Dave Airlie , Maling list - DRI developers , "Deucher, Alexander" , Christian Koenig Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 25, 2021 at 4:19 AM Jiapeng Chong wrote: > > Fix the following coccicheck warnings: > > ./drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c:243:67-72: > WARNING: conversion to bool not needed here. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c > index 3398540..102f6a0 100644 > --- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c > +++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c > @@ -240,7 +240,7 @@ bool dpp3_program_gamcor_lut( > next_mode = LUT_RAM_A; > > dpp3_power_on_gamcor_lut(dpp_base, true); > - dpp3_configure_gamcor_lut(dpp_base, next_mode == LUT_RAM_A ? true:false); > + dpp3_configure_gamcor_lut(dpp_base, next_mode == LUT_RAM_A); > > if (next_mode == LUT_RAM_B) { > gam_regs.start_cntl_b = REG(CM_GAMCOR_RAMB_START_CNTL_B); > -- > 1.8.3.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel