Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp203817pxf; Wed, 17 Mar 2021 20:15:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQJlyl4fa95nGHBXkgBl619IscH2gYh+hmsc91hq8GFtBRkX/0COgxxBz0Lt7AVSc0uLzI X-Received: by 2002:a17:906:4c56:: with SMTP id d22mr39971086ejw.426.1616037339462; Wed, 17 Mar 2021 20:15:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616037339; cv=none; d=google.com; s=arc-20160816; b=JfC93Fr0SEH0bqx+JbZZf5oAK+9CzuMKAS4k8NTtz3J8zedfaxu/py299xxXIY6ZpP hkimil3Eez2sbk4f9pnHTzHxUdcvE4khkWzEwDHF4QsCFmVx3WHWLP6BhbuZBHetR2y4 LZ1Xp1TjdVH14z/bs7cgNJDvbFsL+VfHaFEh5itaqOEE4SJUBPETU22UwFsBekmfd9d1 lBnM/jD2PtW7cEq9gd3dcCrqZMdLLd+2T8kw1usL1Mowh9cYMQQY+XGLQCHKl9qm3lPh W5sDACwri+RHPugPRbxLOxPVhPM25LD3TanKhUEG0bInUFISOVFzxbDD5ZxSIWjJqbnl /oYQ== 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=jug9lt2096iTFzdoAmqpuHgFfgrRXiyduMJw3GtK8p8=; b=jwjRtNmVRpLctg8OVi0QxX4I7JjPlXwuAXWRAVYTXzrcB5eJ9tJpbPs4gYviWRO+PR uiREGiTpbL6GPdoCWNU6W3eYfSH97P3R9xZsQL4Y0CrfFYbL08XjhF+S6DLjP85hrupa EafR62lZuQ4GGAfsywrXLR9+yRTIM5oscnrjSdqxZIwzruj5hToRf9kf85ArF1L6qy9H kTZMWvvpFn86VCCDjVbV8AwT9N8kNe6w9xNJ5eb1J3AmYlr7rXlfucXgblTCzZJOiAiV piRGuGHVnLxEiyxziWbQLZXvlraAy+Xxshy2RxlaI8+taSv+nCe/9Q7lX/Ze3pKqRzGw nwRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DrhRzLOc; 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 jp24si590726ejb.512.2021.03.17.20.15.17; Wed, 17 Mar 2021 20:15:39 -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=DrhRzLOc; 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 S231149AbhCRDMK (ORCPT + 99 others); Wed, 17 Mar 2021 23:12:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230217AbhCRDL5 (ORCPT ); Wed, 17 Mar 2021 23:11:57 -0400 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57372C06174A for ; Wed, 17 Mar 2021 20:11:57 -0700 (PDT) Received: by mail-oi1-x22b.google.com with SMTP id d16so933107oic.0 for ; Wed, 17 Mar 2021 20:11:57 -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=jug9lt2096iTFzdoAmqpuHgFfgrRXiyduMJw3GtK8p8=; b=DrhRzLOcGsAX3P72JbSKtzPAMjwFFO1Y4Ab6lZPUyB8sFejZRzxyi0tSYQdSz6J1RR svsVqtyj9GenOvMFGO8nzfd/2CbxFBP+GtKL6/N1CuFxzwjA1MvgquXf3/AENPcBVtBa 7DA43Fc5y0B2aVRIYCSpmUi11e+hwpAUpsy6XSJ0iMU1Q7wY/CBHS23D9BJsd6WeAItn QdG0ULYIQfEcCGzhzHHcxiX7s70ZR30dARQnEhYBYQa9ByHvWhQrR5VBBPGvCBqWA7Zd LHdrBsOh45ANhff14lf9TfeznHi0aRebEjfg6PLyx56t/XRT3foIb8aURhgIoq1ISI2x aVsA== 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=jug9lt2096iTFzdoAmqpuHgFfgrRXiyduMJw3GtK8p8=; b=UQZXTBFlmZEd7aygqyP8xlnJ/UxReJ+aSHeLzGENoFPAd3qqzApYqBfKBfabEUTHZK ywZClzc1ol2fpasehcHKDBaBirHT/Glk8FRkosapc9603y4NpblN4Mzgs3aSqIQm8oMS WdRkbd88HpX6FyUSX98AWATtbY/x1B/NNGr8mNB7t/wB+lSZfIvJHvUoI95i4xcysF52 PIjqqwYP5mpESTIZZn2BNFEWZUszZvPG0o6z29oXg32TEcCBPncgujo5QxaQbF+FAYY8 KciaCzsA5iPtpA5AIYW8D+40wMJJNcJvhP1WUFPQwi8Mavjo1eUD0yMIns0LhFmIKdA4 AV5w== X-Gm-Message-State: AOAM533E1WdcPBhhmD6AhlHoYbInxH/v9+wqCJnfHfZnL85+inV08XLh JNGyiXpJJfjIG7SbeX6J72eEwzh/6JHIJkKi1i8= X-Received: by 2002:aca:4748:: with SMTP id u69mr1416178oia.5.1616037116859; Wed, 17 Mar 2021 20:11:56 -0700 (PDT) MIME-Version: 1.0 References: <1616035012-88614-1-git-send-email-jiapeng.chong@linux.alibaba.com> In-Reply-To: <1616035012-88614-1-git-send-email-jiapeng.chong@linux.alibaba.com> From: Alex Deucher Date: Wed, 17 Mar 2021 23:11:45 -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 On Wed, Mar 17, 2021 at 10:37 PM Jiapeng Chong wrote: > > Fix the following coccicheck warnings: > > ./drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dwb_cm.c:220:65-70: > WARNING: conversion to bool not needed here. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong Applied. Thanks. In general, you can just roll up most these bool conversion patches into larger patches; no need to fix them all one at a time. Alex > --- > drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dwb_cm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dwb_cm.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dwb_cm.c > index 8593145..3fe9e41 100644 > --- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dwb_cm.c > +++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dwb_cm.c > @@ -217,7 +217,7 @@ static bool dwb3_program_ogam_lut( > else > next_mode = LUT_RAM_A; > > - dwb3_configure_ogam_lut(dwbc30, next_mode == LUT_RAM_A ? true : false); > + dwb3_configure_ogam_lut(dwbc30, next_mode == LUT_RAM_A); > > if (next_mode == LUT_RAM_A) > dwb3_program_ogam_luta_settings(dwbc30, params); > -- > 1.8.3.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel