Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1801075pxk; Sat, 19 Sep 2020 02:47:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOchtgW3tu0K490UCZV75dK4MhhtwD7MuSyi++emM5b3CIjCNtV6ioLQ1NV6Lr2PGYcuEH X-Received: by 2002:a17:906:7116:: with SMTP id x22mr41342238ejj.426.1600508870916; Sat, 19 Sep 2020 02:47:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600508870; cv=none; d=google.com; s=arc-20160816; b=lZZ0bGz6ZnWU1VEjOSkLhxg+QEbyV+DXUJQiNvD3qrNHZ5B7o3N4vdzFyeP+YRdygJ fnhiLwpn4TRyMriMWEL65a5h0y8Y+IPk3iG1KR7QGMZZeOLid4r4xMB4T+tr6NKFFF+b 3WtsAFeEgbPkKA3g4OtDitRcppQsd7nAkpRCS03EIijAvzjFRUQPh1vAZ4Ow/1Zx43lj SfOZ8lQMe8tYaQx9HU9+bnLxG9azbFCJPIw8V5ZBle4zii9AVCjxCXXUM4Q6zAVoekHl Zv/zSsv4JWcDJsOV3QjkuZuQPiqTyh4t4zDZtnE8TD73oGzO4AsR0Dq7588tyTHqF9IM j0Cg== 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=ibhjcA6fPB+7rpFx9qTdKIKvzLhHZ3M7lN7m6ekgmjc=; b=m4hDOzJZqI9bNfhgOTfytQ3+pOjRjze75XlH0iFRDPHovG8LMdTxsFjeQTgrML1bLY W0f/bMK64h/CAG5d9CPvbQQ8rct84hL4zETNgYVQhu+49Gnxpq3ZGC6aqdqiIpu+2Tkx D+5gEX6CuFWt+l7b54Fmwm6tTw0etDs7RJ55aa+PuftbNXHYV9kdAwPxO+AfT2PAKE8Y 3U1acHdr5/p7Y6NzhwfY3+dBwBjShJQh1+p8t0A3WkpWcjsVVskKqPlvqZdAEWxnLC3z Sh9e6CNFMCuZFBwfc/QCqEyXAEH3IL1HyOQK1sIAdYGKXdM6BVvXWfJ+Rq85sepciCy3 gCPA== 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 w4si4060645edq.370.2020.09.19.02.47.27; Sat, 19 Sep 2020 02:47:50 -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 S1726216AbgISJqd (ORCPT + 99 others); Sat, 19 Sep 2020 05:46:33 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13770 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726097AbgISJqd (ORCPT ); Sat, 19 Sep 2020 05:46:33 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 78282EC0C9926CB3A791; Sat, 19 Sep 2020 17:46:30 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Sat, 19 Sep 2020 17:46:23 +0800 From: Liu Shixin To: Tomi Valkeinen , David Airlie , Daniel Vetter CC: , , "Liu Shixin" Subject: [PATCH -next] drm/omap: dsi: simplify the return expression of dsi_init_pll_data Date: Sat, 19 Sep 2020 18:08:52 +0800 Message-ID: <20200919100852.1639163-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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/gpu/drm/omapdrm/dss/dsi.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c b/drivers/gpu/drm/omapdrm/dss/dsi.c index eeccf40bae41..cac0d1993dab 100644 --- a/drivers/gpu/drm/omapdrm/dss/dsi.c +++ b/drivers/gpu/drm/omapdrm/dss/dsi.c @@ -5015,7 +5015,6 @@ static int dsi_init_pll_data(struct dss_device *dss, struct dsi_data *dsi) { struct dss_pll *pll = &dsi->pll; struct clk *clk; - int r; clk = devm_clk_get(dsi->dev, "sys_clk"); if (IS_ERR(clk)) { @@ -5030,11 +5029,7 @@ static int dsi_init_pll_data(struct dss_device *dss, struct dsi_data *dsi) pll->hw = dsi->data->pll_hw; pll->ops = &dsi_pll_ops; - r = dss_pll_register(dss, pll); - if (r) - return r; - - return 0; + return dss_pll_register(dss, pll); } /* ----------------------------------------------------------------------------- -- 2.25.1