Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1889037ybi; Sat, 25 May 2019 11:01:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJgYmb9tTylTydaYbf8voccuZqP3n9Mf0TNXawr3hWC5w+VRho0utwJlVeFShO5/SNko0d X-Received: by 2002:a63:d816:: with SMTP id b22mr111737757pgh.16.1558807311819; Sat, 25 May 2019 11:01:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558807311; cv=none; d=google.com; s=arc-20160816; b=JZF+g7+P+62LVa/9S4T09yVNUEMY/6GvFZd9f+TaSXavwx8JKCmwDmMYboc6oXe2wG +ILE1Frby0HfA4UZdqAc6RLGetDXl67DGByMiqMVxw6lUUWSUgrXXk3oc/IjCoukhBCE 54nAc47ZWweuYSbWdKoVsulA3l5/J8uMarc2CLhGQu5kCclRC3E6CytVPVXfXhTVa1wn BM9cNFcyv6KIT9qztIxeuUtpAcdxXBkblcI0PYy7z7iMA85GXMBj6qH9A1OuvCcoByb+ T6a9szdiyAjVOdFyANPAQngxqr8G8YvkUDFFbJFRvuXYsAzh10tChpdvRO4BlozBxqwy EndQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=uwSYiRPVFEjQuM0sSyZ+kLnllnNTFI6WD6DgQoN9mU0=; b=vJSyRll729akd2LPQDiiTbAQ69w7cAASb0Yd4YrU95clGNskCySaSiJEx6MYAGOR+w yoxpPNNUYis753VMECOepTecf4zW9j69IUxch4NtciwhXzLR+7Dr2SP4xTfHqVi4655K oybzD2c3NIDajpGfeJdgyCeZUIlizb2d6R+YelBN45CZ8qmVfsVEMuKm5Sjpa+0C7JFx WpslUxnJwWncitmTroAc5A/yQjdi0wUQ7KhkU862yyjFuSS3IXq7FuMDYuX49FZ2jmi2 4i03pd0VUYYTfHYMO6IZm/dIjVwftMB819xS64Rb9lqzdBQxCF1IxV7Wd34krv0H/wRT sZlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m9n2OcAr; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n6si8915307pgq.501.2019.05.25.11.01.35; Sat, 25 May 2019 11:01:51 -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=@gmail.com header.s=20161025 header.b=m9n2OcAr; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727261AbfEYR7o (ORCPT + 99 others); Sat, 25 May 2019 13:59:44 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:40827 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726321AbfEYR7o (ORCPT ); Sat, 25 May 2019 13:59:44 -0400 Received: by mail-pg1-f194.google.com with SMTP id d30so6792242pgm.7 for ; Sat, 25 May 2019 10:59:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=uwSYiRPVFEjQuM0sSyZ+kLnllnNTFI6WD6DgQoN9mU0=; b=m9n2OcAr4oPaQmt5EaECUwWw7q8oAO9NOKTzgtcL5yv9sn0wqLtljcj0twRuahROqC hZvgNOUEomUSjZVNMerY0cJFYsJIohHQuWm2sbkQZA99SWXbrBvYMvH73dQV8FWs/P20 C/9EU96S743OTEfZoOjK/LS9Xmtq1nxz2hELM4oZUWGsxXyH3fta2Ky9VLme4akuow12 8bUmsdWH0D5HwcggJ2uCehbSJ3T9O3i3rPmkIP+gCTO5g0tCKxv3PHWfBmn3jkKi92y4 JfmHAbLmOd40HnM7FXZ9ljrT+pbRcBbkYAwOBbGJxm6y2Z6CyaDo3OxiAgoZgrKhom87 SFzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=uwSYiRPVFEjQuM0sSyZ+kLnllnNTFI6WD6DgQoN9mU0=; b=N+e7pAEg/dwg9kOGx5gGwye4nBTk437A6+bVdE19lA5m7KaFytf2mT37XjNFvNRuYv 7RO1U0q5+Uu0E/Di6Cx54qBaZCfTfwgYa3UH23KhSrdhdPujW8nqwpLucdLtncUq2F6z T7hq9TvlZ+LN8JbKCs1m+TiL4aHFKDnf1LgCEinMQCyYmrysGn1xInh68wxi7H5afsBr GodKXzoQL3bGONer6pCfCnu0b+bhOJs634ZALBzo8gzoWj0HZTpwal1e7moi+q1lBwp5 EkxKLniWc1oGd8J2p1Xvk4HVTwinBwVwWN+jIwKeyVL1zWi+XSNoQFZL/NS5L+3prZNh tgdQ== X-Gm-Message-State: APjAAAWVTgueMxmbpxbSXz00ao//oomElzt/ktQLLNL2J0Gc/xpKJLci l8xnCVjUKOg6qt7lzXMHakA= X-Received: by 2002:a62:5103:: with SMTP id f3mr123729284pfb.146.1558807183602; Sat, 25 May 2019 10:59:43 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.73]) by smtp.gmail.com with ESMTPSA id b18sm10017130pfp.32.2019.05.25.10.59.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 May 2019 10:59:42 -0700 (PDT) Date: Sat, 25 May 2019 23:29:37 +0530 From: Hariprasad Kelam To: Andrzej Hajda , Laurent Pinchart , David Airlie , Daniel Vetter , Maarten Lankhorst , Sam Ravnborg , Gwan-gyeong Mun , Enric Balletbo i Serra , Hariprasad Kelam , Marc Zyngier , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/bridge: analogix_dp: possible condition with no effect (if == else) Message-ID: <20190525175937.GA29368@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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; -- 2.7.4