Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1837678pxu; Sat, 17 Oct 2020 02:53:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygn97AAD6yrKOBwAgUjummHMTJPQlFz0hOjjpnk1ptvuyINylKsbww+FUKf6TZdrJ0wnL5 X-Received: by 2002:a50:8fa3:: with SMTP id y32mr8884302edy.78.1602928410693; Sat, 17 Oct 2020 02:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602928410; cv=none; d=google.com; s=arc-20160816; b=MPN0l55sWQ6i585xCrkVzWGelJ6MJrKMNuCSc+lki2eFTI0AR6DVQTht6bwz/jBY8a /lNKchxc0VMXKqTPRmngW03BtwkU9hoiyM92JLUoUaYhwFN9nnXui06+yLCWQkHrz75A D2VZasFvcYo90p5UvFxnVmQieQDw5bLYNbWsTIBgjDM1iBCR8nqq7+VQMsswtvJRTK+x bt7pq+JQIojTsbzmk3AQ6SMzXSnFGCSrNf8XQU+A3ye/uQFoOD6VpDm4hTsuA5KPsRin o+nLN2D43kgjtAlCIM6izwO1IQMn/l9wig5A8vc7PJw8IBSgeubguyj8E318qtNdt+Uv bP0w== 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=o1wng52nBCHTpt9nOPUxvZXvzsaGDnoaPYzlUv4IHoo=; b=0tnNdetxx+GzByUFLVD7AhQYB4p+wACY/zxNLm5fNoqG0/i6+ISr4uKVsPdJ2XiIzS hjiHBgu9DqolZRVWNKM9cwgoediMtvg6ihTLO+uoq0nhl5iAhk6VEIEcvsNysrfS5vST +8VsQ3J0ttb6VlPQ1CVjplx5Yn5E71Keka3Rb/ECxKeo97/Ensj1mEKxE4+9b0eKsphe DdMJ6iaClIXrYYp31+AfT/AWTH9oKI4iVsS+nKeouvk+UnbY9gNHLahiIVcoug7OrGjB BRiLI5rV5YldIqoVbU+fyIY8IeDoIH2ajZhlf018pN06khwMl3fqdiVZXwZkZ02sxYbO 5Dew== 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 k22si45415ejq.460.2020.10.17.02.53.08; Sat, 17 Oct 2020 02:53:30 -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 S2437010AbgJQGTz (ORCPT + 99 others); Sat, 17 Oct 2020 02:19:55 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:59276 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2411646AbgJQGTz (ORCPT ); Sat, 17 Oct 2020 02:19:55 -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 BBA9780573; Sat, 17 Oct 2020 08:19:53 +0200 (CEST) Date: Sat, 17 Oct 2020 08:19:52 +0200 From: Sam Ravnborg To: Liu Shixin Cc: Thierry Reding , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH -next] drm/panel: simplify the return expression of rb070d30_panel_enable() Message-ID: <20201017061952.GE2242298@ravnborg.org> References: <20200915032623.1772361-1-liushixin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200915032623.1772361-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=Sa3K4Do9iwlq6gi14jcA: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:23AM +0800, Liu Shixin wrote: > Simplify the return expression. > > Signed-off-by: Liu Shixin Thanks, applied to drm-misc-next. The patch will appear in drm-misc-next in a few weeks. Sam > --- > drivers/gpu/drm/panel/panel-ronbo-rb070d30.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c b/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c > index 535c8d1cca21..a3782830ae3c 100644 > --- a/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c > +++ b/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c > @@ -75,13 +75,8 @@ static int rb070d30_panel_unprepare(struct drm_panel *panel) > static int rb070d30_panel_enable(struct drm_panel *panel) > { > struct rb070d30_panel *ctx = panel_to_rb070d30_panel(panel); > - int ret; > > - ret = mipi_dsi_dcs_exit_sleep_mode(ctx->dsi); > - if (ret) > - return ret; > - > - return 0; > + return mipi_dsi_dcs_exit_sleep_mode(ctx->dsi); > } > > static int rb070d30_panel_disable(struct drm_panel *panel) > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel