From patchwork Thu Dec 10 13:57:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Yongjun X-Patchwork-Id: 11964697 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BDA2EC1B0D9 for ; Thu, 10 Dec 2020 13:58:49 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6A99923B85 for ; Thu, 10 Dec 2020 13:58:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6A99923B85 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=wQY+mHAPPtc2Cs0LPnLDcn53GGmwlmff3Z2B/hzM2Io=; b=TyupCncaBPcLrewyHIk9aXkeRO IAgH26uy6T6lkLWyw0qxIzoLhDTBMfPdxRq8cmQpV2CREp7J/vbv9ct0WX/M5PI8QMghMLFtj98su pekjxcWUEnGIgp2C1/JfdAssL57dAZxPC9VQfP+xXzO9Uq+uuFTSq4f/X0sh/zkqk6Z3OVHXg9V2x 6IAN/IcsKGguKQE81wHT+L/ZGR1tEKhhC4leeornMBZyaQ+XwsVPH4rc6UrXdCPHrOALU4gc11GAQ T9HRDc0Y2Dc65kL81Gg0xTLjEQyI50NHI9+ixWD9FUoDIOLXNWiKoTD979aWINKXKma31uZvz0k4j pcv4ee0g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1knMRr-0007Dr-NX; Thu, 10 Dec 2020 13:57:35 +0000 Received: from szxga04-in.huawei.com ([45.249.212.190]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1knMRo-0007Ch-Vr for linux-arm-kernel@lists.infradead.org; Thu, 10 Dec 2020 13:57:33 +0000 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CsFpB1fntz15ZG0; Thu, 10 Dec 2020 21:56:50 +0800 (CST) Received: from ubuntu.network (10.175.138.68) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Thu, 10 Dec 2020 21:57:17 +0800 From: Zheng Yongjun To: , , , , Subject: [PATCH -next] pinctrl/spear: simplify the return expression of spear300_pinctrl_probe() Date: Thu, 10 Dec 2020 21:57:46 +0800 Message-ID: <20201210135746.1492-1-zhengyongjun3@huawei.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-Originating-IP: [10.175.138.68] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201210_085733_302962_94F96732 X-CRM114-Status: GOOD ( 10.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Zheng Yongjun Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Simplify the return expression. Signed-off-by: Zheng Yongjun Acked-by: Viresh Kumar --- drivers/pinctrl/spear/pinctrl-spear300.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/pinctrl/spear/pinctrl-spear300.c b/drivers/pinctrl/spear/pinctrl-spear300.c index e39913a18139..d53a04597cbe 100644 --- a/drivers/pinctrl/spear/pinctrl-spear300.c +++ b/drivers/pinctrl/spear/pinctrl-spear300.c @@ -654,8 +654,6 @@ static const struct of_device_id spear300_pinctrl_of_match[] = { static int spear300_pinctrl_probe(struct platform_device *pdev) { - int ret; - spear3xx_machdata.groups = spear300_pingroups; spear3xx_machdata.ngroups = ARRAY_SIZE(spear300_pingroups); spear3xx_machdata.functions = spear300_functions; @@ -669,11 +667,7 @@ static int spear300_pinctrl_probe(struct platform_device *pdev) pmx_init_addr(&spear3xx_machdata, PMX_CONFIG_REG); - ret = spear_pinctrl_probe(pdev, &spear3xx_machdata); - if (ret) - return ret; - - return 0; + return spear_pinctrl_probe(pdev, &spear3xx_machdata); } static struct platform_driver spear300_pinctrl_driver = {