Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5026812pxv; Wed, 28 Jul 2021 01:01:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt+Wgm61VbA00ezLLSfLHrqQX9gTogQvoeHLv4ARfIU0n2HWeal1L6UwGkfghyUQ2QWB1w X-Received: by 2002:a02:8783:: with SMTP id t3mr25080961jai.45.1627459312017; Wed, 28 Jul 2021 01:01:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627459312; cv=none; d=google.com; s=arc-20160816; b=mg9XDvnokCYDroErAEhozoay/Lu+pOquuxFszhXmIb5Kpt13Yfscb8zLO9Uxtg3uEU zxUBrUFNR7OdMXHjxi27AdHaXxK7SWZGUOFnji0wJrlRtFJxK64l7IhTFEsauUZYdG+w /Kl2VnbaktMZB+tKeAFqY5emnlZ+0lXNNzggZJTS25F35rA0iAmCuccCdidku6JBDaSJ yywFTOJXvdRvQ82V6K62s4T0p0JZeNumgHg3TlyOYSzWMXjC3aojsUKAFKmkT/IfOBSu CMADhxzr6RXlI9782LDrGe/A4slvTC0ALNWIqnalNkK5gt8qe8XZ209Zb+nVAIc3PSjy dl0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Vt+2bRoxsZ9PbyldfPYifWkbl6k/1F+yyqCXp6+r2Qo=; b=aabfbp8+6HtrlqRBQKFjHiqjRlbYF56OMxURIXEDnOHQCS1U3JzUeYNRhihN1U8Oo6 DtvG4t5AOnrniBKVHZCB8p6jHukcuq29xQKfWqAP9c1gdgQnfCkc6XuYuUkQ726u16Qq JyXylF//alX8kRd2CqqaDfGJKdLKIDdedL3RgUZuw48PvV3cqzFEA38lntDF4lt/6Jg+ zgm45s7c70QavmB3EKRIzxw2CIhVQZ33zRczgvB3VZVQgQA4PTDnBli5Dkfv1njK7U5h NP9CyZaKetyboMQ1hDjUPTCo6mUMd7RZXJKoi8pwMb+S7flhI3txqf5/rybnDn9kcBB4 PR6w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j8si6168136jak.67.2021.07.28.01.01.40; Wed, 28 Jul 2021 01:01:52 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235328AbhG1H72 (ORCPT + 99 others); Wed, 28 Jul 2021 03:59:28 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:43048 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S235052AbhG1H7Q (ORCPT ); Wed, 28 Jul 2021 03:59:16 -0400 X-UUID: 9533656af24442ccafeeaca07bc2f9e3-20210728 X-UUID: 9533656af24442ccafeeaca07bc2f9e3-20210728 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 345208915; Wed, 28 Jul 2021 15:59:12 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 28 Jul 2021 15:59:11 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 28 Jul 2021 15:59:09 +0800 From: Chunfeng Yun To: Vinod Koul , Rob Herring , Chun-Kuang Hu CC: Chunfeng Yun , Kishon Vijay Abraham I , Philipp Zabel , Matthias Brugger , , , , , , , Eddie Hung Subject: [PATCH 8/9] phy: phy-mtk-mipi-dsi: remove dummy assignment of error number Date: Wed, 28 Jul 2021 15:58:30 +0800 Message-ID: <1627459111-2907-8-git-send-email-chunfeng.yun@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1627459111-2907-1-git-send-email-chunfeng.yun@mediatek.com> References: <1627459111-2907-1-git-send-email-chunfeng.yun@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return the error number directly without assignment Signed-off-by: Chunfeng Yun --- drivers/phy/mediatek/phy-mtk-mipi-dsi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/phy/mediatek/phy-mtk-mipi-dsi.c b/drivers/phy/mediatek/phy-mtk-mipi-dsi.c index 01cf31633019..61c942fbf4a1 100644 --- a/drivers/phy/mediatek/phy-mtk-mipi-dsi.c +++ b/drivers/phy/mediatek/phy-mtk-mipi-dsi.c @@ -203,10 +203,8 @@ static int mtk_mipi_tx_probe(struct platform_device *pdev) phy_set_drvdata(phy, mipi_tx); phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate); - if (IS_ERR(phy_provider)) { - ret = PTR_ERR(phy_provider); - return ret; - } + if (IS_ERR(phy_provider)) + return PTR_ERR(phy_provider); mipi_tx->dev = dev; -- 2.18.0