Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2952930pxk; Mon, 21 Sep 2020 01:04:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEk7s0trHMzrZ+eRAkv2KLhc/X//HaC1n3Vl8GtwsJKXjiGUXaF2Lxt4oAlhtn5ABik3TG X-Received: by 2002:a50:bb65:: with SMTP id y92mr50617914ede.53.1600675486966; Mon, 21 Sep 2020 01:04:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600675486; cv=none; d=google.com; s=arc-20160816; b=JzgIEeeFFnoN+GzOHfyP+C0NCXZ3/KACC/j7tI96Hg9IgXgXSlwwkIOJShjR9gxT41 JC7xA3ECLknOeDB3oCvZBfw9FahbGhJ4Koyo4aiJ21bjntGPclcBvJ/+OL22C5HKXsXw gd9Jsmigkx3uhwXkmKKbHlOZ43popthrF/kxKr0BBeLNEIsfL/1tujAHSP6PX1nlnaSJ E4ZcNCIb9htU2lo1GKNDvjOS/Stz+7nms5/A+LFUcbhB+NoW3PZeLvEch4/sYq/gOfKD mas7fkPk16uH3NRUyiJKYJEeAMYDKJYUi73ABItv9Q16fR75qYptktZKr+0f+Z43lEDN KuFg== 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=zs3kemfsp9jtJu+HNAFc7jWspJUIEZ5vFHxXn65+pPA=; b=vsYz2hm0mmMhYE37V36XV56AhRF4JnIGhZsBSj3oFB8skrsZF7NZPBa6SqZMg//GKp vHqUKpScKG8wsVKHb4z6Jlt6yjWQJnZDTx5aHehWfZMI0QgWwzvqjaddSjg9vsHf4YoW s4E1zVo2d1MWb7Y7jxsQenRoq/2mn6H1Biw0mtvYYb3UakUPkqj2uoYoYsEzzpUelqO3 cDYn5o4HtnHpBv7+tSrvhrqnvbg/s83h6XyHVzJK8WUwBQmQOD36eZEWbiMGZnDrn/PO MAxIqzjAS7wyKUaogOQM1x/0mVcB0fmxQJrDOu6YuVWlrJrKdIROzVlgRqYQcG/Q3UMR 4jaw== 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 d9si7490895ejb.273.2020.09.21.01.04.23; Mon, 21 Sep 2020 01:04:46 -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 S1726901AbgIUIC3 (ORCPT + 99 others); Mon, 21 Sep 2020 04:02:29 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:47514 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726366AbgIUICN (ORCPT ); Mon, 21 Sep 2020 04:02:13 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id B0A93C26A4BEEAB1A8DA; Mon, 21 Sep 2020 16:02:08 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 16:02:02 +0800 From: Liu Shixin To: Michael Turquette , Stephen Boyd , Matthias Brugger CC: , , , , "Liu Shixin" Subject: [PATCH -next] clk: mediatek: mt7629: simplify the return expression of mtk_infrasys_init Date: Mon, 21 Sep 2020 16:24:26 +0800 Message-ID: <20200921082426.2591042-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-mt7629.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt7629.c b/drivers/clk/mediatek/clk-mt7629.c index b73bdf152836..a0ee079670c7 100644 --- a/drivers/clk/mediatek/clk-mt7629.c +++ b/drivers/clk/mediatek/clk-mt7629.c @@ -601,7 +601,6 @@ static int mtk_infrasys_init(struct platform_device *pdev) { struct device_node *node = pdev->dev.of_node; struct clk_onecell_data *clk_data; - int r; clk_data = mtk_alloc_clk_data(CLK_INFRA_NR_CLK); @@ -611,12 +610,8 @@ static int mtk_infrasys_init(struct platform_device *pdev) mtk_clk_register_cpumuxes(node, infra_muxes, ARRAY_SIZE(infra_muxes), clk_data); - r = of_clk_add_provider(node, of_clk_src_onecell_get, - clk_data); - if (r) - return r; - - return 0; + return of_clk_add_provider(node, of_clk_src_onecell_get, + clk_data); } static int mtk_pericfg_init(struct platform_device *pdev) -- 2.25.1