Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1558334pxu; Fri, 16 Oct 2020 15:33:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNlbN24uomSCEzPU4zbyJ/L22Z/ooa564GB+NFoCegmaVCMLUjv0YQK0YRxCdv+4Jtmlpd X-Received: by 2002:a17:906:93ef:: with SMTP id yl15mr5707752ejb.529.1602887595173; Fri, 16 Oct 2020 15:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602887595; cv=none; d=google.com; s=arc-20160816; b=Cw/6VzCM9oAEhIs8PTqUk4oLKVd0/jmBbEJI9ziYQKAqNchmfr18aIsw0JZU1RpWdA MxB2punulXTl1QGMJw94CF1HxI+HKCeAtWRi29P9Qh55PR94fyu4wfr1FDV7qjfChKPn cF82v/E+VBWHC3TTP+Sv53dxT1iIFWCzbT1KoP3ifmLTQ0u57zPIOJoyu2Jv0N0JluSA Bi32d9CVIVhsNFanf39n4Uswt2KSF+RwJojVdc9/kIU7UAL8RObHPYFUd6UQJkVdAWKd Ivb37Ik6ZpNfp8k8yktwWBhfdX/FVZM38iPN8GR/vogTe09yu3d4Y5NhOF8iDxaCSWg4 tPKw== 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=gECs1VIhvzpYl0yx3uhRuSJH7hzEXWKWDTDaN//Nok4=; b=qCuTNMYEelGvViVZZ7WI+9816+dLUvN4ezHZ6cxRj/gFR9u4qFXtuJdhjnttMURBmP 4MrIpLTHBALFqTJU7BK8cy6T5PgiYfSvl+Kh2JVa8zAEQtoqkJGsIlGxiEq2BSl3Cp3P 2F9ETaMHVzBMeayg/U0hQt/hMav3aQioP0aUwaPf6anoIByIaWG2pOKcufMixBfKRoAK eA2Ko8EPbYDK/OwEhYNvaAYIoLvchxz5VRZM15ufIfZOhCETdXaYj74y2Pz+eOTqq2rP SUFXNQKqIs4HHMfHdJVZr2YrlAsNG3Y2p6G29N03Ogbp4ZBzgDeCX3TmVtb+Sr4mA24s 6tHw== 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 w21si2739068ejj.377.2020.10.16.15.32.53; Fri, 16 Oct 2020 15:33:15 -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 S2411020AbgJPVSM (ORCPT + 99 others); Fri, 16 Oct 2020 17:18:12 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:36362 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2410993AbgJPVSM (ORCPT ); Fri, 16 Oct 2020 17:18:12 -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 B450780627; Fri, 16 Oct 2020 23:18:08 +0200 (CEST) Date: Fri, 16 Oct 2020 23:18:07 +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: simplify the return expression of panel_dpi_connect Message-ID: <20201016211807.GE1496366@ravnborg.org> References: <20200921082443.2591721-1-liushixin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200921082443.2591721-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=aI8o0Y8hUY2JQlYkRfwA:9 a=CjuIK1q_8ugA:10 a=Vxmtnl_E_bksehYqCbjh:22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Liu Shixin On Mon, Sep 21, 2020 at 04:24:43PM +0800, Liu Shixin wrote: > Simplify the return expression. > > Signed-off-by: Liu Shixin Thanks. Applied this and the following two patches to drm-misc-next. They will appear in -next in a few weeks. Sam > --- > drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c b/drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c > index 37c9f5bfaefe..ff3d1e8e1e7b 100644 > --- a/drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c > +++ b/drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c > @@ -37,16 +37,11 @@ static int panel_dpi_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.dpi->connect(in, dssdev); > - if (r) > - return r; > - > - return 0; > + return in->ops.dpi->connect(in, dssdev); > } > > static void panel_dpi_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