Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2626252pxk; Mon, 14 Sep 2020 20:05:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKrmeANxsEIpZKLQ0sbgC/YbWHhb9xz20od+kPGrY/jFDrf55yRX/Yji7MJ4H5X+iLhrLJ X-Received: by 2002:a05:6402:1a48:: with SMTP id bf8mr19958416edb.298.1600139125054; Mon, 14 Sep 2020 20:05:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600139125; cv=none; d=google.com; s=arc-20160816; b=vZJgefcUUZiqFs62ejprJYp1oIe8tamWNQvhqt5l+ZVYFQRyWGV82kpJPnnTOzrRQo VdKXhj7ybutXYSGCT8tvPgj3aFaRAtGUwvE/EATSzvZBCdWuvYpWymbM6SGIXf+Gf2LS k8R+q54CxjZzA6jMs3wUe+p84RvZt/vov+o9eVLQMV1oD9+YXMV0KpkNPQIwk5ms8vUr fEIIzQiuc+L8kuF0dAMkveWcW8YMN2YR0KgheNUQbYtHzffpuLghBkRiZlGOkOb6gpJ4 BBf+cGFH3X9LadoiRT9SWJHikLTeLKrdAn4wtv4YsluVnwSjxuP+r4dnJN1ANEQ2AAYZ wJ6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=3nWiKvAfaWaCsuw5fQlKZwAM/1j2QYuoGY6ttiYxCVQ=; b=wgHij/XapoNJvFBVL0qAPkIPmpi9P1EdNgUf83rgxMiiinJ8vP8dMCHhEuHRHTuwSI LmwKh2Rg3maOGckSwuMrY4hBC6NceVrKzpVV1ba7DROsK1bWb9o/brVdLTtb2WLqrLOU pOZ1B+hwX6dmkgaSLlzVA57CErlkvhkcZtSkRhfl42fpNT99JyRMgyOi27XQSOmr3EBi 7UwHS/TJdynzDrojNZeWlqaEU4jrYDW1R8ck0eVjpWPD2jCCIM0puYfslmUUhU2WvwCK WD9TGFRIXCSei2WQbf9MAfKGQUfbxarIirjYcbdjed1nxzLuCKBblb0nP8rMsnPV/UIg mdDg== 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 b23si6158330edx.34.2020.09.14.20.05.02; Mon, 14 Sep 2020 20:05:25 -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 S1726169AbgIODEO (ORCPT + 99 others); Mon, 14 Sep 2020 23:04:14 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:41342 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726087AbgIODD6 (ORCPT ); Mon, 14 Sep 2020 23:03:58 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 8D0388EF6D4CA271CA8D; Tue, 15 Sep 2020 11:03:56 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Tue, 15 Sep 2020 11:03:45 +0800 From: Liu Shixin To: Thierry Reding , David Airlie , Daniel Vetter CC: , , "Liu Shixin" Subject: [PATCH -next] drm/panel: simplify the return expression of rb070d30_panel_enable() Date: Tue, 15 Sep 2020 11:26:23 +0800 Message-ID: <20200915032623.1772361-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Liu Shixin --- 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