Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2953390pxk; Mon, 21 Sep 2020 01:05:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDuBUwUaKoM6pTxW9EfDtHKhqaUdohlkRtuU+hC3WVgVFAAXqVMQDhGlRaZOqtGEOv4M6/ X-Received: by 2002:a05:6402:5:: with SMTP id d5mr44906740edu.376.1600675537778; Mon, 21 Sep 2020 01:05:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600675537; cv=none; d=google.com; s=arc-20160816; b=YCjzprekSv6+8m1SQbE28P49VZTiCfTWCQ1scyecwRwoqAiNHiN7dtXdqbLKgGiKH4 8AlNssCOoL7OiwgA3jarjMlbPks+NTVtN+CqtRt7e+12rtYFMjHHvXNPNHMqAyDxkSkV 9+6ANx8v0uB747YlFegtMXctFfSoWf15gwdZHQrTC8OleTTtr9PooHAdgkkp80lW3Vts iSSu+pcXNUTl7l75wAdtyqlc8NM6EQKJ4eYFLlAWkRWpOd1BWLCPI+k8hUGR1Iepgo3K I3hCos+5dEfrmD4Yg2RpH1x4XH2JwDc2pxD05RK3b2PSt/DW8pchxDtCIWlozSh8g7QO X7hA== 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=/WXpqj/APxxSH4xCzk2amjwLiYm6/Zrcm45aHRrlPEU=; b=SfyjQ4wMcXXHO3hX7ljawreHC6C7gVPMiWdlFXPla8Bgx/i/gEcbCdovmP1OmuQjJr HBhCI2aDApVAb6poQ6EBIrHamYZPbyzUWBukPzewUCJMlIiZd4q7VPAj1HUMApEQ1rRI Nuc7B1bLutT65PoVEXx1WdXnuVRDV+7R7RmUV9CoLmxMJvkP5EfhyT7lTdrS1X7EUMdZ vnFSXdu59npn+rIvHk1xGKxlxSX23ZBHvHCFHG0o9IC+b5yP7Tb8mJJHrGks4j+HS58g DjAG0rC4+p5zD1cPsp7lweVrnPxWXWnxH1ap+4JyrWW6qMwxat9F94m5ZEQJ5Utjsf4B 8J4Q== 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 bm16si7618935edb.114.2020.09.21.01.05.15; Mon, 21 Sep 2020 01:05:37 -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 S1726547AbgIUICU (ORCPT + 99 others); Mon, 21 Sep 2020 04:02:20 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13783 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726402AbgIUICN (ORCPT ); Mon, 21 Sep 2020 04:02:13 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 521C1F4E9771BEDF25CD; Mon, 21 Sep 2020 16:02:11 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 16:02:00 +0800 From: Liu Shixin To: Michael Turquette , Stephen Boyd , Matthias Brugger CC: , , , , "Liu Shixin" Subject: [PATCH -next] clk: mediatek: mt6797: simplify the return expression of mtk_infrasys_init Date: Mon, 21 Sep 2020 16:24:25 +0800 Message-ID: <20200921082425.2590990-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/clk/mediatek/clk-mt6797.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt6797.c b/drivers/clk/mediatek/clk-mt6797.c index f35389a11af1..428eb24ffec5 100644 --- a/drivers/clk/mediatek/clk-mt6797.c +++ b/drivers/clk/mediatek/clk-mt6797.c @@ -582,7 +582,7 @@ CLK_OF_DECLARE_DRIVER(mtk_infra, "mediatek,mt6797-infracfg", static int mtk_infrasys_init(struct platform_device *pdev) { - int r, i; + int i; struct device_node *node = pdev->dev.of_node; if (!infra_clk_data) { @@ -599,11 +599,7 @@ static int mtk_infrasys_init(struct platform_device *pdev) mtk_clk_register_factors(infra_fixed_divs, ARRAY_SIZE(infra_fixed_divs), infra_clk_data); - r = of_clk_add_provider(node, of_clk_src_onecell_get, infra_clk_data); - if (r) - return r; - - return 0; + return of_clk_add_provider(node, of_clk_src_onecell_get, infra_clk_data); } #define MT6797_PLL_FMAX (3000UL * MHZ) -- 2.25.1