Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp475719ybg; Mon, 1 Jun 2020 06:27:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/0mNzRZn2QSXYmvT2yEufUS4I0xbJbng4hON5TDLlp4Lnx3x+R1kTMrENkq/PljqyVFI6 X-Received: by 2002:a05:6402:1c87:: with SMTP id cy7mr13591475edb.354.1591018041183; Mon, 01 Jun 2020 06:27:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591018041; cv=none; d=google.com; s=arc-20160816; b=C8JpM+dj5OA3ZrrzfuA3PWOXA16y2IZTqICZvnT0pIyC/IvuDQKttGvu0+dkZpbDwh gvy/HXQtHVv/HNrYmoLGZ0dQrHZIEc9cmf4l/egT9GMRrC7iYLX7PPNqkwWo1G9LoqP7 KywheVZ4reF5nHjFsMrObjcvETjJObuhhH4E5IAje0UGt5EG3A3PdRvPtFegJhYgFBx4 qT3ank62mkImlr8P1T5Ie9Iyv3vSZZGwvITCktQGe+rKryPU/GskikRKT/qZhCgxBc2k gh3steEEWzvgsxkXwDSSExK+bHU2piKDC5ccSpLhh35YSeGkzuC9Sdp9GnQMOXVBnEui TDBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:cc:to:subject:from:dkim-signature :dkim-filter; bh=WDoFslnoBh4NFH5LxebC/l/9rNxykmi1JmVWDnec9NU=; b=lJYQ1RZaaDxBvJnJkMnsWSlnawwL30Lnf5xFAAx2+6C0ekCBxa/KXoKSnDq3UmylnE 8uHjKWhpUMbcHqs5/mYHDTStVhOIAftKZeeQOZ2OoqRD9iNKShITvHHRaWhQ09FGceGN rs1g/IpkVBrBxH1J978+/otFMWY9WUJVcQ1pxYTF/yVE8p+4w/rgpZzo/IShgT05DzYX tLsHw2GNiMuAUCZLHWcQzk3QgA46clGh1WwRxu0Ov4Qv9uAETf4Dmt7bp1O9LpQjFOHu 7E5FPU16D5UpeWr6b2POxHeBSVkIPu21GGTEO/7Nqcj/pbk53d/BZQrI5UpaDBkztmJ0 PKaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=cD1cN3D1; 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=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ha26si4665680ejb.533.2020.06.01.06.26.55; Mon, 01 Jun 2020 06:27:21 -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=@samsung.com header.s=mail20170921 header.b=cD1cN3D1; 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=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726152AbgFANZI (ORCPT + 99 others); Mon, 1 Jun 2020 09:25:08 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:38121 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726089AbgFANZH (ORCPT ); Mon, 1 Jun 2020 09:25:07 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200601132505euoutp01a73212bd703a354124c7b23220269a1f~Ublr7lTpF2438624386euoutp01h for ; Mon, 1 Jun 2020 13:25:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200601132505euoutp01a73212bd703a354124c7b23220269a1f~Ublr7lTpF2438624386euoutp01h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1591017905; bh=WDoFslnoBh4NFH5LxebC/l/9rNxykmi1JmVWDnec9NU=; h=From:Subject:To:Cc:Date:In-Reply-To:References:From; b=cD1cN3D1e+Nh7jTXsLqqpT0yDWpTd0ZULiUNMLo3S6r/pH/aqFVm4qrAsau0lTLHY ENS2lNyiQhzeOUDdMHO7+92HNFOJoFh3ysiVnR5VYk/CrwjkFNl83yYJyJAa79P+7K iMpJ3ynypXHODTihrjeEYb3bVzDvAOoR2T4ApzHs= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200601132505eucas1p18e3a7e6740ebae768a8f4da8c9a9ece3~UblrkZ79k1098310983eucas1p1T; Mon, 1 Jun 2020 13:25:05 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 51.33.60679.0B105DE5; Mon, 1 Jun 2020 14:25:04 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200601132504eucas1p1065ae1c2c68bb149a0505cd521452c15~UblrMu8g12556225562eucas1p18; Mon, 1 Jun 2020 13:25:04 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200601132504eusmtrp111ff227a9c0cd8a8e126eb12a77f4b3a~UblrMG_lB2270722707eusmtrp1H; Mon, 1 Jun 2020 13:25:04 +0000 (GMT) X-AuditID: cbfec7f4-0cbff7000001ed07-1c-5ed501b010ea Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id B7.DB.08375.0B105DE5; Mon, 1 Jun 2020 14:25:04 +0100 (BST) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200601132504eusmtip10bef19bb4da24abb7f5138822552b060~Ublq27nnW1048610486eusmtip1m; Mon, 1 Jun 2020 13:25:04 +0000 (GMT) From: Bartlomiej Zolnierkiewicz Subject: Re: [PATCH] omapfb/dss: fix comparison to bool warning To: Jason Yan Cc: afd@ti.com, tomi.valkeinen@ti.com, linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Message-ID: <266bc2e0-c2bf-1c0c-a5ac-58941ff38f5f@samsung.com> Date: Mon, 1 Jun 2020 15:25:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20200422071903.637-1-yanaijie@huawei.com> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOKsWRmVeSWpSXmKPExsWy7djP87obGK/GGfR3WVm8PzWR3eLK1/ds Fif6PrBaXN41h81i9pJ+Fov182+xWSza08nswO7RcuQtq8f97uNMHsdvbGfy+LxJLoAlissm JTUnsyy1SN8ugStjc8NL5oLF/BVNR9vYGxi/8HQxcnJICJhIrHk0g72LkYtDSGAFo8T/+Xeh nC+MEm/vfmGFcD4zSnya8ZwJpuVGzzSoxHJGiWW7mlkgnLeMEpPWXWQEqWITsJKY2L4KzBYW sJdou/sbrFtEQFmi8f50sG5mgYWMEgc3rQdayMHBK2AncWKvH0gNi4CKRPedbjYQW1QgQuLT g8OsIDavgKDEyZlPWEBsTgFziea1/8FmMguIS9x6Mh/KlpfY/nYOM8h8CYFt7BKXrs6GOttF YtmEs2wQtrDEq+Nb2CFsGYnTk3tYIBrWMUr87XgB1b2dUWL55H9QHdYSd879YgO5lFlAU2L9 Ln2IsKPE3W3PwR6QEOCTuPFWEOIIPolJ26YzQ4R5JTrahCCq1SQ2LNvABrO2a+dK5gmMSrOQ vDYLyTuzkL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ampBahFMHxMHp1QDY79emF3X1dbZO0y7P+neWrm6jkO89/LWE812MyZy r18R1zvj2IdFv/Lc1m2wXxeQKPbh47p/nAqTe97NnPv/ufryyfNfLq90W3xL33nObdYH2vt7 Pe9t/5DaJ/hVW7+js3p6pKinxSI5vpwgf/2n6ponGDubPD0XP7r5zjNB9eS+4NTVBx7eD1Vi Kc5INNRiLipOBAAdEM/mywIAAA== X-CMS-MailID: 20200601132504eucas1p1065ae1c2c68bb149a0505cd521452c15 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200422072450eucas1p106befe0a06fe20557d7ea4297525878a X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200422072450eucas1p106befe0a06fe20557d7ea4297525878a References: <20200422071903.637-1-yanaijie@huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/22/20 9:19 AM, Jason Yan wrote: > Fix the following coccicheck warning: > > drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c:461:15-32: WARNING: > Comparison to bool > drivers/video/fbdev/omap2/omapfb/dss/dispc.c:891:5-35: WARNING: > Comparison of 0/1 to bool variable > > Signed-off-by: Jason Yan Applied to drm-misc-next tree (patch should show up in v5.9), thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics > --- > drivers/video/fbdev/omap2/omapfb/dss/dispc.c | 2 +- > drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c | 4 +--- > 2 files changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/video/fbdev/omap2/omapfb/dss/dispc.c b/drivers/video/fbdev/omap2/omapfb/dss/dispc.c > index 4a16798b2ecd..3bb951eb29c7 100644 > --- a/drivers/video/fbdev/omap2/omapfb/dss/dispc.c > +++ b/drivers/video/fbdev/omap2/omapfb/dss/dispc.c > @@ -888,7 +888,7 @@ static void dispc_ovl_set_color_mode(enum omap_plane plane, > static void dispc_ovl_configure_burst_type(enum omap_plane plane, > enum omap_dss_rotation_type rotation_type) > { > - if (dss_has_feature(FEAT_BURST_2D) == 0) > + if (!dss_has_feature(FEAT_BURST_2D)) > return; > > if (rotation_type == OMAP_DSS_ROT_TILER) > diff --git a/drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c b/drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c > index 7060ae56c062..ef659c89ba58 100644 > --- a/drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c > +++ b/drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c > @@ -455,11 +455,9 @@ static void hdmi_disconnect(struct omap_dss_device *dssdev, > static int hdmi_read_edid(struct omap_dss_device *dssdev, > u8 *edid, int len) > { > - bool need_enable; > + bool need_enable = !hdmi.core_enabled; > int r; > > - need_enable = hdmi.core_enabled == false; > - > if (need_enable) { > r = hdmi_core_enable(dssdev); > if (r) >