Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2246903pxb; Fri, 5 Mar 2021 10:37:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxf04I93/g7uPHEZ7MH9y2rBS7hx+XBwZE2fMqQeR4aCpMLf7nFjXCzdVbCoaWZMuPkFjpQ X-Received: by 2002:a17:906:2bd6:: with SMTP id n22mr3504752ejg.91.1614969458073; Fri, 05 Mar 2021 10:37:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614969458; cv=none; d=google.com; s=arc-20160816; b=Wwg/KPASU0rVvNmJ8MW6pd9aznhKFM8pxP2REyZuNZAHkEKeNEPMaxfyuHv84oif7A kY0YAjVJmHiROb/LIt0PRK3zHkY2vYYJ2Ulfxw/YoGrg3xFoHfCTf8v1zjPyRvzxvy2A nLkSLpc+zpV7cOBieorJLonxZvnca5lbKeT+9TLn0wM6NT2YxYcAf8qNX7u+W9dQGyQh 4IhP4kPOCGxbZspwmhUGRlDba2V6JbvTZcML6F6HgVHpSnQGpBlSagUXWH8LBX1cHaZq 7Z16fstHKdO8/XHqQr/tW4ti+GAPs0ulU9LC5LFKXyliCeFANsV6++S44v+3Ozg035OT SZQQ== 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=ov2Ty9Jb6QsriK8+bSn7UGp92CXVSd8s3dKNA/YGByM=; b=XCA+OGAi4lIES7GumrDR6Lp3gok1o7ZZ8j/Qj6KNP9CRrn2zLPxcVe6mnKCMMJuSiF 7JxbUy7QWvY+w9JNg4jHHlZJc3NceVL9g48c2EKb93Q8d6496q51Gh6OBLvqjIAsnBJc H++UWE5Q4KupYRKdkWffeucuSKtShJyoPZQnkvzZV0zNN/WodEgGx2Och7KXHBfa3CgF uOOZdbjtM2qUGVEQPhQ37dboYxFImZ71AHZXuLc7TTOeMbxQj103l83bjEeGVSaG2SlK 3CN0+eWn0sK726PmiqC/Pjqzp4ga9JeXiNfGsp7Auh7/6GMhViz0vefiroM4Q9/CA6sy fKRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FEIB07sK; 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 l20si1755869ejn.375.2021.03.05.10.37.15; Fri, 05 Mar 2021 10:37:38 -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=FEIB07sK; 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 S230094AbhCESgS (ORCPT + 99 others); Fri, 5 Mar 2021 13:36:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230468AbhCESgB (ORCPT ); Fri, 5 Mar 2021 13:36:01 -0500 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEA28C061574 for ; Fri, 5 Mar 2021 10:36:00 -0800 (PST) Received: by mail-ot1-x335.google.com with SMTP id v12so2717619ott.10 for ; Fri, 05 Mar 2021 10:36:00 -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=ov2Ty9Jb6QsriK8+bSn7UGp92CXVSd8s3dKNA/YGByM=; b=FEIB07sKgIB6pNFXSaohr2gQW8avxTQUntOULApdNkgbd+Ai01qcSjGioPm54JbPRr 7f058sKm+gcT+ugGsorEJ0zqgPKY6giQ1w0XpfhPwGIV1N+3k5LdzWZZXjj1y1ILiVzV NFqBEAnNcurZih0+vhn39JfiQ5ikxV7I+UO6IQNxqe2aZGSxYbaje6BIP036nlwu1uTC TEv8ib8TheBO3RB68SaBTV7Ayh4x+EnzJ1Q1fyCt6rzcucE1cJBSl1asmWUcbd0fJvih uH6RZePFrj2glSnyVgzyYgmJ5E7Tp5nuprDZqEaPNXwJ7WXY0ZJNy+Ie+TkoqtIpijE7 hngA== 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=ov2Ty9Jb6QsriK8+bSn7UGp92CXVSd8s3dKNA/YGByM=; b=LgRrgx6k/QHMb+7wQmcEQQw8QxKWDrz+yFDChaJGe1rnLmPbAsHtS+Y1DNTmjBIy3s TE1X0DE5mRrOMMlfmuDGCUBZDBxJtvZb1m2Fja7n37xHF4nfHM3xFsjloAhrcRUwoPVS ajKYqXuKvMpL1JPWh8TXx7XQr565xJQsE+jZw7txgJlA96I9qT3FF3OV5qvUytjMZ+hh 2PEjLJaBnlSX9tTKpnLsrlnEN+J6G+ZWEc9bS70Q2/gvqL2uNQadYYOQ1gg02Ie6645J xcKDQCAEnkZV/CAKs2Yf8VteUkYdX8HDB/EpafKsCP6XFwWUg5zhKQqG5pp3r51CWRPa 4ZfQ== X-Gm-Message-State: AOAM533mUjp4/bmlIsdh0XtEmpcDpqB/4TAfjPbaUgQ1KHPWB5DSGMkA 2vpudu2ghRJT7iUkn8kXHRNemHF1CrRsJEW9Z44= X-Received: by 2002:a05:6830:408f:: with SMTP id x15mr9528500ott.132.1614969360161; Fri, 05 Mar 2021 10:36:00 -0800 (PST) MIME-Version: 1.0 References: <1614844895-85184-1-git-send-email-jiapeng.chong@linux.alibaba.com> In-Reply-To: <1614844895-85184-1-git-send-email-jiapeng.chong@linux.alibaba.com> From: Alex Deucher Date: Fri, 5 Mar 2021 13:35:48 -0500 Message-ID: Subject: Re: [PATCH] drm/amdgpu/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 Thu, Mar 4, 2021 at 3:02 AM Jiapeng Chong wrote: > > Fix the following coccicheck warnings: > > ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:956:52-57: WARNING: > conversion to bool not needed here. > > ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:8311:16-21: WARNING: > conversion to bool not needed here. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > index 3e1fd1e..0e6b7415 100644 > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > @@ -953,7 +953,7 @@ static void event_mall_stutter(struct work_struct *work) > > > dc_allow_idle_optimizations( > - dm->dc, dm->active_vblank_irq_count == 0 ? true : false); > + dm->dc, dm->active_vblank_irq_count == 0); > > DRM_DEBUG_DRIVER("Allow idle optimizations (MALL): %d\n", dm->active_vblank_irq_count == 0); > > @@ -8307,8 +8307,7 @@ static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state) > hdcp_update_display( > adev->dm.hdcp_workqueue, aconnector->dc_link->link_index, aconnector, > new_con_state->hdcp_content_type, > - new_con_state->content_protection == DRM_MODE_CONTENT_PROTECTION_DESIRED ? true > - : false); > + new_con_state->content_protection == DRM_MODE_CONTENT_PROTECTION_DESIRED); > } > #endif > > -- > 1.8.3.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel