Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp96783lqo; Tue, 7 May 2024 13:21:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX3k/7or11Fb9fshFNkGL3yW/TXVolwsoPU+bZieJve7mxY73gmtAlGNTM6tZRU2wV5lQyZ7tUDF6AfrU2hBrgQ82wZ18sH7XlxM5dyUw== X-Google-Smtp-Source: AGHT+IFqUpj00/YYzKyQsKHgsBHRzO57sjwTSeJ8JhWIdVEGPEch3iPROSLiilMEVqKEpdqLq2bX X-Received: by 2002:a17:906:dfc1:b0:a59:bcfd:d950 with SMTP id a640c23a62f3a-a59fb95e30bmr32258266b.46.1715113311626; Tue, 07 May 2024 13:21:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715113311; cv=pass; d=google.com; s=arc-20160816; b=H8SEYXLZyh3aXMOjTiA/qRtiYXGt4xyExlsj6MwDsSMje8crj61SjrHpgTrlUI18oW q/7yQKLTjxgyR/fuqauZFvLrJkooB08fXAMEk8NIhcXk9C1prrtD+ts9KUq5rSdIuytJ YcMRMvLYQ81BqtSGXRSqSvJsRoMKxCF3lJABr7o8j77pj7fRWxdMZwRjiF+ZsFwSLojW xGQyVqvKdQwoi+fb2mR6fr7pxpCaQDIbusqoAA4aKOjkBx5UQZh6Cr5zh4/6J+Atp0L4 tuaFkXYAJdhwX2ME7jloES4pUgbx5ZT3ZkB/j1pybur3SGWgDcBqVT+jND4YXWDEOY3u zPvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EgVkHUBRrwwaEzcxfwl2UcWvboIjbWS3ZDQpKoYuSd0=; fh=hWLqxDNCYbAGCaJOHRIg80fA+kpmwdf98cHI+Q3J+ac=; b=IOi1xuOMykV3me1gghbiv88DW4BCpAZxLwUrLzVuiQCDNEYPC0l6dwfwFRsnjCEdTf BaY3cz0vZOGGp4+8egDLBcUjMLxrtkSys620Tp1y3xr8jw1usBHrhIKyhNvpmFxIRhv0 QfcFqML5CmCfQi9fKVFbqOR1tLA7qODhsFniWPlddYVDUfZojjvPJbDZY9aUwZGpA/tO uQAX1LMYTp6v8QUQkiAsysSj2n1Yh0izvC94qjxzzi4PCjis7j3amzrCn0MZKlfC1mkq F/ePEsrUbD/8UE0kZa3QA2PIjZzxqs5aX1bZNoDyY1F2yFo2yhQ1bwfo030UYty/Ha82 Nu3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=eJn2f38I; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-172139-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172139-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id qu20-20020a170907111400b00a59c1442379si3175842ejb.286.2024.05.07.13.21.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 13:21:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172139-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=eJn2f38I; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-172139-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172139-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5E0D91F22B74 for ; Tue, 7 May 2024 20:21:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E63B18733D; Tue, 7 May 2024 20:21:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="eJn2f38I" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 11152187343 for ; Tue, 7 May 2024 20:21:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715113303; cv=none; b=jGU5wRePOzJq1LeahkutQ927aBZ7IFB33GsKBcpOkX51GiJT169TTzM0TUjw8yE7zlITkNvcKcPcJpOm2qSnEzr10U/1J7ZH4vgZb8wSWL3Hiu8vhZe9XYoGP5bn5NUeLS+YY6+VO7iCcMbHvT2XzSUcPgVQCIPvo2v6xV9VrcQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715113303; c=relaxed/simple; bh=qnFkKVTP+o//0MobSjb1ptmrlHIH+f6uJ/IOr5bJrH4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Zt+udofr9/d1Y9MLK1xCFHeuoEJ3nQ4dh83QsT+8Nqulv6JZ9teO+dh/hOHPCcXjp/p7A5jBGn5Ea3474XGNwIn846lq1+pT/GDEZeOTlLKyjLF7hstcoMS0g86lSrmtyUj0HdFkfKpM5JZDfXQBPP+R7R+1ypNxJ6ZtXmD+c8o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=eJn2f38I; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id BD5A4DFB; Tue, 7 May 2024 22:21:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1715113298; bh=qnFkKVTP+o//0MobSjb1ptmrlHIH+f6uJ/IOr5bJrH4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eJn2f38IciskKjGoUsWEFqR08CSxOqqeyhTCurgnYSb92k3fopsbbA+MhNdvgr2BA yU+GR05PEhk3eMlYiLThHwGD7DTc/F/bij2tVLGupzu+Kv6Wl+lc/tnteNSk57zEJy RgLYE5U+Ai8Emz6drdQafZ2rJmKJwT+/cLGThob8= Date: Tue, 7 May 2024 23:21:31 +0300 From: Laurent Pinchart To: Sui Jingfeng Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/drm-bridge.c: Drop conditionals around of_node pointers Message-ID: <20240507202131.GD2012@pendragon.ideasonboard.com> References: <20240507180001.1358816-1-sui.jingfeng@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240507180001.1358816-1-sui.jingfeng@linux.dev> On Wed, May 08, 2024 at 02:00:00AM +0800, Sui Jingfeng wrote: > Having conditional around the of_node pointer of the drm_bridge structure > is not necessary, since drm_bridge structure always has the of_node as its > member. > > Let's drop the conditional to get a better looks, please also note that > this is following the already accepted commitments. see commit d8dfccde2709 > ("drm/bridge: Drop conditionals around of_node pointers") for reference. > > Signed-off-by: Sui Jingfeng It looks like this was forgotten in commit d8dfccde2709 ("drm/bridge: Drop conditionals around of_node pointers"). Reviewed-by: Laurent Pinchart > --- > drivers/gpu/drm/drm_bridge.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c > index 30d66bee0ec6..a6dbe1751e88 100644 > --- a/drivers/gpu/drm/drm_bridge.c > +++ b/drivers/gpu/drm/drm_bridge.c > @@ -352,13 +352,8 @@ int drm_bridge_attach(struct drm_encoder *encoder, struct drm_bridge *bridge, > bridge->encoder = NULL; > list_del(&bridge->chain_node); > > -#ifdef CONFIG_OF > DRM_ERROR("failed to attach bridge %pOF to encoder %s: %d\n", > bridge->of_node, encoder->name, ret); > -#else > - DRM_ERROR("failed to attach bridge to encoder %s: %d\n", > - encoder->name, ret); > -#endif > > return ret; > } -- Regards, Laurent Pinchart