Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1482286pxb; Thu, 4 Mar 2021 12:29:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAd317Usvktu1tNk7vvZZuUEskInkv7TEyAMlKfXB4ULK93Cci1DJimPCkf0LJ1qxoU4fy X-Received: by 2002:a17:906:86c6:: with SMTP id j6mr6009681ejy.197.1614889749049; Thu, 04 Mar 2021 12:29:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614889749; cv=none; d=google.com; s=arc-20160816; b=c9nzEzPdbW803FLddWoSgU00yFH4g6nff1uWVMNR9wJhwf5LOI1kOglBJVfzO38qtF RPKGgnwKrS7JoXjgVXX4DmI/M1oDBLQBbCc/CUdh5gF5E2mbUcTX/AftwAPg6H10kkg2 bf3iJ1/QDy6bMaeDrgF9dAjLGDHeqqpGvoswUDR+5IKPSUWAv2GuV2fKR0ectZXH6puh 3lHFtAetayXYTrrkiaD328LFVPTE5H7Jv9+IZKIL9gTKPcumrZLMG+OrMN2C7H1vWyMF d+yv69I39c6b5s24SVLjvni5Apnuce6CuVq4W0UIcXKHg/PH5Z9F2izsJQSXp8dXIJyd xs1Q== 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=0V4NppJX6K9gT+Ur7cLKD7613ioC61Z7I5irbavVEYA=; b=FwoZrjZT5mHO8UF9M+Dju3h96x7YyN65WXn1Rn27weoVhsGoNJDVuETdMi5fhDygzX 5bQiR5lhEPDpspj79svlgJR5bJ6p6pdFG2CDAH/YpWLxsQhdnxyp2aHEIXWVOoSSsr3l 5gnkUpY6JF4w2hICnuvNaBLtbHG2IHCua8OPkU5CiprdITfz3S53lUMGgGJT9x3WOZuH YUCX2SgK/TE68fiGBXKmUG6QSEnWduAzZwBd2LPQXps4rqNAP5AdNuyHgwAY1Pnw/UnT bzI7D9fn9HbuPH7ilE5NOo1EN8b9iom7bQsnXzkaJb9c9iA7yI1mBLiZI9GD1uEN6h7M NCFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qZefZTyN; 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 b3si154273ejj.422.2021.03.04.12.28.46; Thu, 04 Mar 2021 12:29:09 -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=qZefZTyN; 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 S1446610AbhCBVSq (ORCPT + 99 others); Tue, 2 Mar 2021 16:18:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1835152AbhCBSWp (ORCPT ); Tue, 2 Mar 2021 13:22:45 -0500 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F939C061222 for ; Tue, 2 Mar 2021 10:22:04 -0800 (PST) Received: by mail-ot1-x32d.google.com with SMTP id h22so20929429otr.6 for ; Tue, 02 Mar 2021 10:22: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=0V4NppJX6K9gT+Ur7cLKD7613ioC61Z7I5irbavVEYA=; b=qZefZTyNlgwXtOJORNJkek/yKCs0FmZ9ALgW1by4vpG5bJAQfZq3eomusKgQ8/z2mx 8LD5RIo89t0oMYXgZKB/8fczTMZrkgHwPLF3nqN402fRBaDGwsxF1zBjtZhp0flog0+Z v7ggvwi5ltm0QKKv31ayWCzdiVMEvRFKNC+2i9CqyN3W/F1Nsz3eOTJ4mcTKXTKmIHh5 t2gorb9E8bsOjMG2l5Tkgx++aJqiv0G2G/Er0RGhvKwYiXimecwOg4OvUfQRyPGqkFz9 6n2QJI9sJKmejbKwoEK/iVCcv0xjIv2lcard5q/7OFPnKzSiPYiJ7wlbxxB7tO788EYF zZ6g== 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=0V4NppJX6K9gT+Ur7cLKD7613ioC61Z7I5irbavVEYA=; b=irZZxG4TZbKm3fXIfBOrJ5mrEU0kLn+ah2KNX295q4wlFAe4ymDt9WozUEQo20sYpk 7YexZOdtrMZY29rO1mFEoZwglU1/RERlz95gZAG23ZWfkk6UnrdFVEAS3p8ruxKeMe7S 6RyrlEccnp4noFHQ0MAzWWOx4ziDS7g1sXcTBj457BcDycZDneie+gQ3ckOkwygw1D0c eTaehJYWOCV+nKTm5DkbtjazWDL4EEr3SjV988XItocHeirW9JiCtekUtGmElX9ZSPhL 9OTMwpiGZO9Mlmz9D0Doz/C6ccfJwTz0OO0Dr1we+N+b88NOHsccBqt5TKlcgsEZJySc +NYg== X-Gm-Message-State: AOAM5322oo74hSHfWJYFN1XWbGNJ9lbAz3ccTQQbUZHy9OLTu4ocFDkV gdIST5LFkJRx19NG8pzh8bIlDml9DvlDdoTvSf8= X-Received: by 2002:a05:6830:408f:: with SMTP id x15mr832415ott.132.1614709323593; Tue, 02 Mar 2021 10:22:03 -0800 (PST) MIME-Version: 1.0 References: <1614581387-14843-1-git-send-email-jiapeng.chong@linux.alibaba.com> In-Reply-To: <1614581387-14843-1-git-send-email-jiapeng.chong@linux.alibaba.com> From: Alex Deucher Date: Tue, 2 Mar 2021 13:21: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 Applied. Thanks! Alex On Mon, Mar 1, 2021 at 1:50 AM Jiapeng Chong wrote: > > Fix the following coccicheck warnings: > > ./drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c:298:33-38: > WARNING: conversion to bool not needed here. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > 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..fbefbba 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 > @@ -295,7 +295,7 @@ bool dpp3_program_gamcor_lut( > cm_helper_program_gamcor_xfer_func(dpp_base->ctx, params, &gam_regs); > > dpp3_program_gammcor_lut(dpp_base, params->rgb_resulted, params->hw_points_num, > - next_mode == LUT_RAM_A ? true:false); > + next_mode == LUT_RAM_A); > > //select Gamma LUT to use for next frame > REG_UPDATE(CM_GAMCOR_CONTROL, CM_GAMCOR_SELECT, next_mode == LUT_RAM_A ? 0:1); > -- > 1.8.3.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel