Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3139372pxk; Mon, 21 Sep 2020 06:18:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCh9xgxkVBPjO76SoncMzvyQXo5p5sWiiQLnnNOhM+DBBvoUnqomFMc68JL6LXjtzZzK93 X-Received: by 2002:a50:d2d1:: with SMTP id q17mr52372122edg.167.1600694323022; Mon, 21 Sep 2020 06:18:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600694323; cv=none; d=google.com; s=arc-20160816; b=mCPRVCLMlA1fbU4uFQjnYuHbVD2uqvc5ughJylHiPpX9372RGCaEgwTr9oPuphn7xH Li8xV/v61IYynwSDG4N0MN6Qmg0sIb++tfX0Yn3Mo4Mb4DueQNX4HRX6mLeO0kJEPvzl CTgVdXJFGINzHPBJyrPFKFVC+DRA/pjB6xvCUDn9hIgo1Ha1cW30mOc9+yvFfw1p0cG3 CXVigjezUbCnRhIMO4XhcMHlRfE554CYNc45XfLkQMy+mIhfWBtVjh3CZ87yPSLHg1XB YKtqHwlqBmHBhncfF0Rvlr554eZgQTnu1P0XyQaWZL8zcG6Mht/IVp2XhgwR/kEPbiy/ A6ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=MMUNRykBKfFHJZbgpbbRgEgRuHco8EcvxYHYsiZblCk=; b=yZRoEDet1LlkzBK61BZBcNin+9vA/D4HO1lpdYKTbb0pRu1EgK4yjhS5jAAeGMwqrV zybhlkz9S2xrgjrpYRSWIFUB0Dzk1luBRiUnp+4FfvyMp6k823b4l0c1VquD2/zrpfpo s9WR7sOxpM+A0y//f28v+KVRphwRki8OZWUXbpy1luJTMLsoK29pC3Md7wNShnajfkLz gMX2Lcg78d7NaEd6H2TW9SPF0PNzM14f4UeVKTPeGbefQp9aYYh3Z8hnPIDyAdWIJAdK wwvZIrnN+x8KuNXBrXbTk3tQuhRYp6ta0876QCXniiWNVcLndWVcGzO3Xptvab5kTJ42 2bEw== 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 d23si8028375edt.338.2020.09.21.06.18.19; Mon, 21 Sep 2020 06:18:43 -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 S1727678AbgIUNOA (ORCPT + 99 others); Mon, 21 Sep 2020 09:14:00 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:13755 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726690AbgIUNKG (ORCPT ); Mon, 21 Sep 2020 09:10:06 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 1CB52DA434280CFD50D1; Mon, 21 Sep 2020 21:10:05 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 21:09:54 +0800 From: Qinglang Miao To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter CC: , , Qinglang Miao Subject: [PATCH -next] drm/panel: simplify the return expression of td028ttec1_prepare Date: Mon, 21 Sep 2020 21:10:18 +0800 Message-ID: <20200921131018.91513-1-miaoqinglang@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/gpu/drm/panel/panel-tpo-td028ttec1.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c b/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c index 037c14fd6..ba0c00d1a 100644 --- a/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c +++ b/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c @@ -242,13 +242,8 @@ static int td028ttec1_prepare(struct drm_panel *panel) static int td028ttec1_enable(struct drm_panel *panel) { struct td028ttec1_panel *lcd = to_td028ttec1_device(panel); - int ret; - ret = jbt_ret_write_0(lcd, JBT_REG_DISPLAY_ON, NULL); - if (ret) - return ret; - - return 0; + return jbt_ret_write_0(lcd, JBT_REG_DISPLAY_ON, NULL); } static int td028ttec1_disable(struct drm_panel *panel) -- 2.23.0