Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1558367pxu; Fri, 16 Oct 2020 15:33:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwiwO9HfnE+NH1gWV3WncC0P3y3eLGZQlS7rb3UKsobFunMA/GOiVe3P7LpMFFY7uRqg5H X-Received: by 2002:a17:906:a282:: with SMTP id i2mr5999859ejz.39.1602887598577; Fri, 16 Oct 2020 15:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602887598; cv=none; d=google.com; s=arc-20160816; b=pMJhd6ML22wdz8J8f1b6z108Ks6trUpNnT2jKUosRrgLDTZTLuDu6EfNGuTo1QbJV8 W5srxEUZmZkhN2Au7/PzAKLhTEzk8j7LP8ETwqrY9UkeJg0STrcgOf8vZRY6RitS3GDg AWtPvixOIZvEmZQVmDjqOjCLOxEyNDsaD1dkIrU+1W5IfeA7SFZyY2P0DoafB7rukYWb bkkPMNDTpFAK8leQFF0B3N/2RVXAGK/J1QE/yPwfsnGEc8eXrr1DRkjCz31vXPfQEPOj vGpJNtPc+5ZFswmqACcO9ysekdLdg2NtY2d2QfqjUQNeJwGfHBpk4q8GSthoToozq9+q b9xQ== 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=S+7X/c0mseyjrcafSyYKd5H9QaLuafPpMswvmP0pDdY=; b=rY6NZEWrStYEPviX/bVUhW0v0VeGDwneXcsBVfzNaDhVvH8KBFoP082Ahw3yk4CuDu hvVuDLJ+/GMp7kVohrhwuhOu8CkPw2vHrdFQWT4ROQu44iWihdxObBU6He1nbutzklbn i1GxW3gB5gfy1/0p/OaIcaFKRG0Z1Q9fFet/+/1TnIleBcHdkaMbprK4zgATZUUrGTaN U+HnD78nW2Moveiqo2zKeydQnVtOqwchyg/TeokEmomXHUH8NcMTMC5NZs9kaDeKe4zh K7CoPwEXgiTVLIYxfy51TEywXtmrG4Vu4506ENAwRLqAYkAKh7DZe4hEWz1w5MIUtn8d coOA== 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 d19si2561033ejr.473.2020.10.16.15.32.56; Fri, 16 Oct 2020 15:33:18 -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 S2411135AbgJPVSg (ORCPT + 99 others); Fri, 16 Oct 2020 17:18:36 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:36468 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2411091AbgJPVSf (ORCPT ); Fri, 16 Oct 2020 17:18:35 -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 1E10780615; Fri, 16 Oct 2020 23:18:33 +0200 (CEST) Date: Fri, 16 Oct 2020 23:18:31 +0200 From: Sam Ravnborg To: Qinglang Miao 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-analog-tv: simplify the return expression of tvc_connect() Message-ID: <20201016211831.GF1496366@ravnborg.org> References: <20200921131049.92616-1-miaoqinglang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200921131049.92616-1-miaoqinglang@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=ToXaz2Xm6MjKWDOX7ugA:9 a=CjuIK1q_8ugA:10 a=Vxmtnl_E_bksehYqCbjh:22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 21, 2020 at 09:10:49PM +0800, Qinglang Miao wrote: > Simplify the return expression. > > Signed-off-by: Qinglang Miao Thanks, applied to drm-misc-next. Sam > --- > .../fbdev/omap2/omapfb/displays/connector-analog-tv.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c b/drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c > index 63bd13ba4..a9fd732f8 100644 > --- a/drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c > +++ b/drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c > @@ -47,18 +47,13 @@ static int tvc_connect(struct omap_dss_device *dssdev) > { > struct panel_drv_data *ddata = to_panel_data(dssdev); > struct omap_dss_device *in = ddata->in; > - int r; > > dev_dbg(ddata->dev, "connect\n"); > > if (omapdss_device_is_connected(dssdev)) > return 0; > > - r = in->ops.atv->connect(in, dssdev); > - if (r) > - return r; > - > - return 0; > + return in->ops.atv->connect(in, dssdev); > } > > static void tvc_disconnect(struct omap_dss_device *dssdev) > -- > 2.23.0 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel