Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3701957pxf; Mon, 15 Mar 2021 16:40:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxL7rhVsbthRFPZtYPI+JGnuCgHHZ9TvMgSLx4PQ1/NzYAx9G2bUGng+JMjtJBd+p7KouwT X-Received: by 2002:aa7:d416:: with SMTP id z22mr32418837edq.239.1615851610411; Mon, 15 Mar 2021 16:40:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615851610; cv=none; d=google.com; s=arc-20160816; b=vCqKNXl8jHM7D5z4y+RO/6LTH415TGsUdld+EpTvYFd1cqVOWqMFk1h6S/Pjc1wIRy haQcgyNhtvYPGZK7nzluOByQxWy/y2qd2HmmpgLpKxdcYkDh6GxI81gQdsX4Vy333gdC eoCBevNtgLSzxktVZOKT6GEvimHacILAeTgcHQ8r0l4RDPoZsQLMQeudh9AP8TNu16bf 2F5WgqIsWrD4UoTHfXr3rMB6MwduE3rmnyZv4CjYi+hbE+svLEcza+lyvT5mOlB26eyO CWROJ46RblyDEtQGctyKNiz6vezdkiJgyZlKY1ckqjxK1+TAMTie6JbwvJGHo6P84SnF rzaQ== 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=YBq3gzSWM4PAYPU03bItAvmuL/jkDE66lmjkbZXjRp8=; b=dklYIBT8t504euOq5lWQNhuMbGXYcVIaGsHWYRzudiet25dzusBJbVx+AZ0Ut2e7es y21Jk+ivvx5m9U6n65fL99nuk/xQcDV3yB/hAZotlTT4qrZ0IHoZyXoWvlgPPhJn0qfW eESDiVDqttOU2bValFV1N6yH2bEpU5WkWqV86+wkBtvec4eAyuzEz+U2U1mmmkNvg44W SH6BvpW5v/XRpP63DghtxG2rPFhsoERia/8azTAeYmylAJjy6eVAO/ozfF0n4uWzhL6x +ZTQ0iYaVJ58419jzdZvrP0cEX3Ep8JHAuxa6t5uS4u7lsE58GW+09f1nVLnR3G2lAJu P1/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=an85zbY+; 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 h6si8926550ejc.211.2021.03.15.16.39.47; Mon, 15 Mar 2021 16:40:10 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=an85zbY+; 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 S231609AbhCOS1o (ORCPT + 99 others); Mon, 15 Mar 2021 14:27:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231728AbhCOS1b (ORCPT ); Mon, 15 Mar 2021 14:27:31 -0400 Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22960C06174A for ; Mon, 15 Mar 2021 11:27:31 -0700 (PDT) Received: by mail-oi1-x230.google.com with SMTP id w65so35429400oie.7 for ; Mon, 15 Mar 2021 11:27:31 -0700 (PDT) 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=YBq3gzSWM4PAYPU03bItAvmuL/jkDE66lmjkbZXjRp8=; b=an85zbY+atXgMmpRQQBVfLZXYZx7DbYuH6si3dsaJ4RZ750Mj6Pj9AV8KmzMw8NoBm c/6EqiaKL3RPUCd55n0wSCiRx68GVJECcqxYEexFcnhJ2QSIqSKjD/5zZAklkIHyRrd6 zdb/qGWJL4AtNo0AkKQ4GSqDRNBV4m6edi9Z3YAYZm0v5zJgWW/B/eX7Dk574k4pxXNE Q2UPBuzzhaummRHcKdd/AI1MXXqogFcfZHpGxMw3pxfWNkCTb6LiLosFs79FAi/Wdnn0 REWTqaTseDkF6WuhlPrDigCc9L4gB6Q8waiklbrWRchYn8lCd9/4iKfA04y1LUNKi+JF KnVg== 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=YBq3gzSWM4PAYPU03bItAvmuL/jkDE66lmjkbZXjRp8=; b=mSDxOqeh6xc29QQAiMan3CrlM0uSirIjPLbtjxYWe2kIPitz/tflUYFJz/TlU9JZqU x5w1MJLlpqGKRB4XdYvlBT41It2oeS4HCEYRDx5EDP1gs52eXF+sMSjPG6d5AUa0dWIm 1tiTipIcfvj7OTorCar6+5pUo9sJnTC/JkdtzXPt9r9egQEcUG6meR/bixkemo2QsSUT AEL43sCTuGHO5kYOk6RUQpaTusqhk0tUFGpAQUp8HTE/OMJk/5mMAYGv3s94MLoCStwd 9HM6hEbnYn1/ZvD6WsiBcQ4SDzkhqKcR4B3zPnSwiPMqSB+ldLgxLyIRxM/0Iup+Bdy8 dhXQ== X-Gm-Message-State: AOAM532xVpBaCsNpJog2LPxfZDdGrCwWOu7RlNolJbAiu6a+oOakAk+k ZH1wb5jBoTe/E064+Rb4TwDXL9Sn0wN15RRmv6Q= X-Received: by 2002:aca:af10:: with SMTP id y16mr331070oie.120.1615832850600; Mon, 15 Mar 2021 11:27:30 -0700 (PDT) MIME-Version: 1.0 References: <1615796522-21363-1-git-send-email-jiapeng.chong@linux.alibaba.com> In-Reply-To: <1615796522-21363-1-git-send-email-jiapeng.chong@linux.alibaba.com> From: Alex Deucher Date: Mon, 15 Mar 2021 14:27:19 -0400 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 15, 2021 at 4:22 AM Jiapeng Chong wrote: > > Fix the following coccicheck warnings: > > ./drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c:358:69-74: WARNING: > conversion to bool not needed here. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c > index 3e6f760..e153109 100644 > --- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c > +++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c > @@ -355,7 +355,7 @@ void mpc3_set_output_gamma( > next_mode = LUT_RAM_A; > > mpc3_power_on_ogam_lut(mpc, mpcc_id, true); > - mpc3_configure_ogam_lut(mpc, mpcc_id, next_mode == LUT_RAM_A ? true:false); > + mpc3_configure_ogam_lut(mpc, mpcc_id, next_mode == LUT_RAM_A); > > if (next_mode == LUT_RAM_A) > mpc3_program_luta(mpc, mpcc_id, params); > -- > 1.8.3.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel