Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7024897ybi; Thu, 13 Jun 2019 08:19:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwoPDj3IfO+J0zH3Qh5HuCzXBl3FBxxjwlgfo2noewT8z8PVnBg5mfhaf21hXNNRE6aBiK+ X-Received: by 2002:a63:1f48:: with SMTP id q8mr14016857pgm.417.1560439174251; Thu, 13 Jun 2019 08:19:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560439174; cv=none; d=google.com; s=arc-20160816; b=ZL3YATg5YhdM/QqmqoFK/vwMXO3iT08Lb7cghXR85j0qzacLlKihrgPiwUn0sDWd4H omvLn28jtTPXo6CO7RIws0O0gXnpLwKZORau7ok4rQPaTPOTwRzSU8SRpDdWuEbTbJS3 iNxAdROB+5A/QRcHvAhnmRfyPz9dyLGy3Kp3P4RJK6tgkioNGZnom++y7eCi2B1H9EUz +X4nz2+zCw1A3Rk04cYYz+Ki3sww+P25id39TCaw0aPnDLmMhpOFele82BWRKF67ItYt SV5DPF1DoFeY/WLf4jE1e7hdcu4SIJiuMF81ex8sV8PvJ9Z+y7xQyy7HDi86hz/+a8qt Nm/g== 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-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:to:subject:dkim-signature:dkim-filter; bh=zdLA4Nojr9jC09RQ/AblHRjiDN2CeTU+kemvaSieWYY=; b=JSmekV+D5KYDjSp3+IPEuB4GzNPuWVnX3fzzH14DurvAgxlcajt5+X7Xwh5GjYfUER xrh+Qdf1Ge89pXQ3gVVaLW4MbqiJvpKx4EjOE6Blg67vW0j0gUyjq78izjZaX/NFWH0p pgHJCfYNcJwo23ExVTFx8KyweheWG1pubT8CsEra9l4vI+4mk2pta2M883TiR1o/6/B9 9hCIfXxcBbnlFgymSopGISOrr8LDY0mq6k1x1dfUXwO4+hTyHxXO/8rELAJF7WGCckn4 xfGXYPFd+bS5qaVmDa7sgCui0fUSEKUFuc95qtPs3cT1rFznkyuSydj7e8KKJvS+gBn+ adNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=F4iuljgs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id n75si9109pjc.27.2019.06.13.08.19.17; Thu, 13 Jun 2019 08:19:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=F4iuljgs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2388758AbfFMPSY (ORCPT + 99 others); Thu, 13 Jun 2019 11:18:24 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:42111 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732160AbfFMNJo (ORCPT ); Thu, 13 Jun 2019 09:09:44 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190613130941euoutp02d2d516f8c8bef435edc4a2c90831ccd4~nxBLqvZFJ0204202042euoutp02C for ; Thu, 13 Jun 2019 13:09:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190613130941euoutp02d2d516f8c8bef435edc4a2c90831ccd4~nxBLqvZFJ0204202042euoutp02C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1560431381; bh=zdLA4Nojr9jC09RQ/AblHRjiDN2CeTU+kemvaSieWYY=; h=Subject:To:From:Date:In-Reply-To:References:From; b=F4iuljgsd4Uj4r83qlWWsZPsixnbRMiKrVvHWX01wccNEj1hDuUM0IKT8XlBqloPT BR6hZ4OXMIxHyt+XeADVO+0T3cAYflilSrPaywWbk46tK3zT7tRG+XZR7+P0iBH7Tj KPrCgOrXTZNrQgzbN/SoTQmhUIx3GHTQZ6EpeWt4= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190613130940eucas1p1164d9e64a164b45b79386a13c1970a31~nxBK_qeAQ1623716237eucas1p1U; Thu, 13 Jun 2019 13:09:40 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 69.9F.04377.41B420D5; Thu, 13 Jun 2019 14:09:40 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190613130939eucas1p2ed39eed5de6719ced11b82668a10132a~nxBKFxUg31943819438eucas1p2r; Thu, 13 Jun 2019 13:09:39 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190613130939eusmtrp2038b72b76541c3637832e737ded0e8ff~nxBJ2G8PA2146321463eusmtrp2e; Thu, 13 Jun 2019 13:09:39 +0000 (GMT) X-AuditID: cbfec7f4-5632c9c000001119-bf-5d024b14a433 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 78.FD.04140.31B420D5; Thu, 13 Jun 2019 14:09:39 +0100 (BST) Received: from [106.120.51.74] (unknown [106.120.51.74]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190613130938eusmtip2da5be16d87b60a3331e3e3ecf6b15459~nxBJJ2l-y2891228912eusmtip2J; Thu, 13 Jun 2019 13:09:38 +0000 (GMT) Subject: Re: [PATCH] drm/bridge: analogix_dp: possible condition with no effect (if == else) To: Hariprasad Kelam , Laurent Pinchart , David Airlie , Daniel Vetter , Maarten Lankhorst , Sam Ravnborg , Gwan-gyeong Mun , Enric Balletbo i Serra , Marc Zyngier , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org From: Andrzej Hajda Message-ID: <9bcf16dd-c064-27eb-3749-c3933b4b605f@samsung.com> Date: Thu, 13 Jun 2019 15:09:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190525175937.GA29368@hari-Inspiron-1545> Content-Transfer-Encoding: 8bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA02SaUgUYRjHfWdmd2e1lXFVfLSLFvpgkFqIDJqiGDEYdhOhWE06qKW7suOR GWQHsVmWhlhu4iopmqwH1ponhIKLlMd6ZmlrqB0eaXmg4ZHrKPnt9/yf6/+8vCQuHxS5kNHK eE6tZGMUYmuiumWp46DDcSzMYzjDmU5vb8XotepMnO6ZnxbT+s9NiDZNLGP05N8+jH6QWSih u+tyxXTBbwNBrwyuiumSJQPyt2H0eXrE1AwVIqZxIZ9garVDEuaFJkfEvGz4iTFvF4ZFTF7r acb80Igxhdm9Yma2as8pmxDrIxFcTHQip3b3u2wdVaEzobhO6fXyX5mSVJRFpiEpCZQnPDY9 F6cha1JOlSDomtHhQjCHoN3UTgjBLILujizxVktXea9ESBQjGCvPQEIwhSBv6A1hqbKnLkJR hR6zsAPVi4Oh4ayFxZQrrLwe2Jgko/xgTdMssjBB7YeJ+j8bvY7UBZirrUJCjR205oxu6FKK htHxOxIL49ReuGt4gQvsBJ9GdZjFBFBTEhi+XYwEq0dhRbs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MwPjdduznlh2MXe+CDzEKcDAq8fAesGKKFWJNLCuuzD3EKMHBrCTC+4MBKMSbklhZ lVqUH19UmpNafIjRFOi5icxSosn5wNSSVxJvaGpobmFpaG5sbmxmoSTO2yFwMEZIID2xJDU7 NbUgtQimj4mDU6qBcU+oUu3ZKesb7kSoNEk2KjAIqMv1NWfMucQftW1SbdcpoW3zP0Wt2TX5 9bo1NZO/8CZ9aVidEFRW+V5BWlQ7XPWk0K0DMzXrdR/5C+ke0f24Svzj8shXhh9LnOccPZF6 /8G5HOt3301nVs54bfFCXcq9gDHrX+Hn3RejV0pXV7Wo/ndzXrXhshJLcUaioRZzUXEiAHCr YWv1AgAA X-CMS-MailID: 20190613130939eucas1p2ed39eed5de6719ced11b82668a10132a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190525175948epcas2p31156b3ec2ee712634558e04faa42b342 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190525175948epcas2p31156b3ec2ee712634558e04faa42b342 References: <20190525175937.GA29368@hari-Inspiron-1545> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25.05.2019 19:59, Hariprasad Kelam wrote: > fix below warning reported by coccicheck > > ./drivers/gpu/drm/bridge/analogix/analogix_dp_core.c:1414:6-8: WARNING: > possible condition with no effect (if == else) > > Signed-off-by: Hariprasad Kelam Mixed feelings about it, but: Reviewed-by: Andrzej Hajda I will queue it to drm-misc-next.  -- Regards Andrzej > --- > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > index 257d69b..cfcd159 100644 > --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > @@ -1411,8 +1411,6 @@ static void analogix_dp_bridge_mode_set(struct drm_bridge *bridge, > video->color_space = COLOR_YCBCR444; > else if (display_info->color_formats & DRM_COLOR_FORMAT_YCRCB422) > video->color_space = COLOR_YCBCR422; > - else if (display_info->color_formats & DRM_COLOR_FORMAT_RGB444) > - video->color_space = COLOR_RGB; > else > video->color_space = COLOR_RGB; >