Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1838102pxu; Sat, 17 Oct 2020 02:54:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYmZ18qB5AI6/hjmXZmAWMGSCzh2HOiM/kQ7KPLhyI5Bho9BdgvWzcpGuBrnpU/oRFm9cF X-Received: by 2002:a05:6402:1716:: with SMTP id y22mr8282542edu.241.1602928484531; Sat, 17 Oct 2020 02:54:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602928484; cv=none; d=google.com; s=arc-20160816; b=DZ8U5U/Am/1YKk5euxCYg5ZWRRKzthharB7WbVDx2Zjgvt/FrgZBSuJ+wnyA/rzgfx ZotQ7CnSA5lt0K0rKII68qaxJB6dW/oUJdYuvMMQ9103Z8Vc31wZe0eQ7UpaTSAW2CJN AI5Mp5XWOx5menNuoxvNoeQELvbdr5c+hfWgFbke3PKoEo4Q1Vj5Ktx4luogfO3qD0pP mK6hnjFJDXoGsZWB0adeKProztZaGqZRE9ZTCKlEtUigpX3W+Kc1JnUfZcQelENGq9l5 OuSJSCgRjjGNpN7t0PpnlEVyg6wwXPEQDWU7Nxpq7EIAi6oT88v/JPSVrNJGa+W2WZtM mGNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=/EHIrfznWNghQNss2bzxju2vO2S+tB/04Pytu0mixns=; b=RHxZQaidh2TwYpU7lPAqk7zIZirnNWBe+wxQPHG4QzwTwthRU9ur3AniQquxq9sv2T J3GIrCaU88Nrp/sh6hcd+QT0NCDUEIBTK/yFd/eiZXXSE40cUvZJLGjehoZCflEPIB0P QaM3Op2/QLIEO6EPSnL8JYoLCqzUI8OPFysizaqG93TXPnxPoHsy4LYN4Uo10DUD1p5b dhKQTOcO4prJyy3M6q2RjBG+uiAGHxa/Ll0AcS3QwCJ3+ZF7aM9L3T840kTUqeT23/vH LhKReqYn7/YlUlsbUqf+DaxY8KUFT8d+y9zUvFyGAtAztVykRjJ5SJAWNO2zGHrpdnxg e/vQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g20si4195337ejm.339.2020.10.17.02.54.22; Sat, 17 Oct 2020 02:54:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437036AbgJQGUt (ORCPT + 99 others); Sat, 17 Oct 2020 02:20:49 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:59430 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436912AbgJQGUt (ORCPT ); Sat, 17 Oct 2020 02:20:49 -0400 Received: from ravnborg.org (unknown [188.228.123.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id DD78680573; Sat, 17 Oct 2020 08:20:46 +0200 (CEST) Date: Sat, 17 Oct 2020 08:20:45 +0200 From: Sam Ravnborg To: Liu Shixin Cc: Bartlomiej Zolnierkiewicz , linux-fbdev@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH -next] omapfb: connector-dvi: simplify the return expression of dvic_connect() Message-ID: <20201017062045.GF2242298@ravnborg.org> References: <20200915032627.1772517-1-liushixin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200915032627.1772517-1-liushixin2@huawei.com> X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=fu7ymmwf c=1 sm=1 tr=0 a=S6zTFyMACwkrwXSdXUNehg==:117 a=S6zTFyMACwkrwXSdXUNehg==:17 a=kj9zAlcOel0A:10 a=i0EeH86SAAAA:8 a=e5mUnYsNAAAA:8 a=qyqJRru8iCNiQjncfiQA:9 a=CjuIK1q_8ugA:10 a=Vxmtnl_E_bksehYqCbjh:22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Liu. On Tue, Sep 15, 2020 at 11:26:27AM +0800, Liu Shixin wrote: > Simplify the return expression. > > Signed-off-by: Liu Shixin Thanks, also applied. If you have other drm/fbdev patches pending then I have missed them. So please resend if this is the case. Sam > --- > drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c b/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c > index b4a1aefff766..2fa436475b40 100644 > --- a/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c > +++ b/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c > @@ -51,16 +51,11 @@ static int dvic_connect(struct omap_dss_device *dssdev) > { > struct panel_drv_data *ddata = to_panel_data(dssdev); > struct omap_dss_device *in = ddata->in; > - int r; > > if (omapdss_device_is_connected(dssdev)) > return 0; > > - r = in->ops.dvi->connect(in, dssdev); > - if (r) > - return r; > - > - return 0; > + return in->ops.dvi->connect(in, dssdev); > } > > static void dvic_disconnect(struct omap_dss_device *dssdev) > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel