Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1558399pxu; Fri, 16 Oct 2020 15:33:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSH4wSPhTUa6P2fTj5XQIbipZz3mWtAfQWcl8mO+rEkg1vtSxzhlnPIDPyHWizAiNrotW0 X-Received: by 2002:a17:906:68c4:: with SMTP id y4mr6139972ejr.197.1602887602015; Fri, 16 Oct 2020 15:33:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602887602; cv=none; d=google.com; s=arc-20160816; b=W+OXXS0NVV+VSLbZ62m6R0WewlFL9u4fuEzWACqqTeZ6bPHLfF4uh543j7X1xxog4f 4t0HtY35KrY/Ydr2564h0t4orX7t8Ra7t7cpRlC5eZxH/jN5kksqR95DmtzV30UU/w/S heS8+Ibyy4wBgvBoKP6obRVJVqAEWZnRcc7HE5C7LdyNNT9xmERgkkXl8DAgbZ8xmWPk oc1nfIlTULWc7cyLNQZhgH1yey/qzYWNJoHFH89pvdN86NRaSZCAFxIUQCSTnNIu0l+V wFA6Pky4wg54P47hgUGOkSRfiRHtFPvRvFnJl78gQbHZ29fyCqsxGRTJ1TpMUtw3ZtnC KOqQ== 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=XvgoK4ncrEYWOIbd4jHiKG6H9osfky3oyqI8ZPpvqr0=; b=Gl68BrgVzN6o47V7mHxc8gBfrXSQ0LrV2rKPYqs0TZI84inmT9okeDYOEMjTsmjENm 8zrNp68suBSgTLHz1XQW6dI9mKoAD7IYNd3THu0xnY+I+4uNcKK60/NCWeMFGeXvNS38 PBQ/RG0nDh8L8GVgN2mVpt2B3Mj3HJpmhMVBziXWwMEziXc+WiTIAYUm5F23RIf8XxEL WPofg5uyjfZ4YO/CIRU/5Jx+uT6sJgEDsion085E2TEgr0XiSwp90WAAfDL90ba446L1 UYz81M1Yqo2MhUGL4GwIxd6dyyVGwDwEH1ZO2+suoOH2v7xiwR2HmIgdDOkSI/ZxdKFo At7w== 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 l31si2499358edl.524.2020.10.16.15.33.00; Fri, 16 Oct 2020 15:33:21 -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 S2410052AbgJPVTu (ORCPT + 99 others); Fri, 16 Oct 2020 17:19:50 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:36714 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2409798AbgJPVTt (ORCPT ); Fri, 16 Oct 2020 17:19: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 428CE8062D; Fri, 16 Oct 2020 23:19:45 +0200 (CEST) Date: Fri, 16 Oct 2020 23:19:43 +0200 From: Sam Ravnborg To: Qinglang Miao Cc: Linus Walleij , Bartosz Golaszewski , Bartlomiej Zolnierkiewicz , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-omap@vger.kernel.org Subject: Re: [PATCH -next] omapfb: connector-hdmi: simplify the return expression of hdmic_connect Message-ID: <20201016211943.GG1496366@ravnborg.org> References: <20200921131051.92661-1-miaoqinglang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200921131051.92661-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=no2T8IuB39rNVZpCtwQA:9 a=CjuIK1q_8ugA:10 a=Vxmtnl_E_bksehYqCbjh:22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Qinglang Miao On Mon, Sep 21, 2020 at 09:10:51PM +0800, Qinglang Miao wrote: > Simplify the return expression. > > Signed-off-by: Qinglang Miao I dropped the changes to gpio-cs5535.c when I applied this patch to drm-misc-next. It looks like an accident that it was included here. Sam > --- > drivers/gpio/gpio-cs5535.c | 6 +----- > drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c | 7 +------ > 2 files changed, 2 insertions(+), 11 deletions(-) > > diff --git a/drivers/gpio/gpio-cs5535.c b/drivers/gpio/gpio-cs5535.c > index 53b24e3ae..57b9ddffd 100644 > --- a/drivers/gpio/gpio-cs5535.c > +++ b/drivers/gpio/gpio-cs5535.c > @@ -345,12 +345,8 @@ static int cs5535_gpio_probe(struct platform_device *pdev) > mask_orig, mask); > > /* finally, register with the generic GPIO API */ > - err = devm_gpiochip_add_data(&pdev->dev, &cs5535_gpio_chip.chip, > + return devm_gpiochip_add_data(&pdev->dev, &cs5535_gpio_chip.chip, > &cs5535_gpio_chip); > - if (err) > - return err; > - > - return 0; > } > > static struct platform_driver cs5535_gpio_driver = { > diff --git a/drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c b/drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c > index 49551afbd..670b9c6eb 100644 > --- a/drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c > +++ b/drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c > @@ -50,18 +50,13 @@ static int hdmic_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.hdmi->connect(in, dssdev); > - if (r) > - return r; > - > - return 0; > + return in->ops.hdmi->connect(in, dssdev); > } > > static void hdmic_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