Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2953206pxk; Mon, 21 Sep 2020 01:05:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRuBz6RH+c52qhUtAMuItzoxkKDX0Mh1KNqcYzGI4Cs1crFGnk46+fKMxtgFcLwsyRBoa8 X-Received: by 2002:a17:907:aa9:: with SMTP id bz9mr47215979ejc.421.1600675516502; Mon, 21 Sep 2020 01:05:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600675516; cv=none; d=google.com; s=arc-20160816; b=uMNiQkirznWZx1MY0uXwdAjpGALIH9KpHBlc8rlfsk7PeY1fy2a9VMB8I05S436BRl vMqyhr/xnU+dEg+2zX/5vOpV5bqyQz5aLyTguFh4jLqDd4DUbfm/L8eH9Hi+2P8esnLT UAhNrCfVz/HDxGjKS2RJQd7q+Axum4Gp74Tc5Eonx3SSoQaSkrXn7o1Sl3UT4nhIXMXb 88GYVPhPLa6anNYDcSB54ULfQH1ZXOMjEjbtnqbV8gKdWPrHL126YBjlFZ9CDd5a5fad kemtCN5NEVuhH66ZC6w8U14jZpFzdPCFAReHlNhSvuyXwySkF63XJNSMatAGnmuEs8Ru dL7w== 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=lVVNtHCF1QUvRakAkqSICOsfqM2sGgzW+eIWJTYUPTo=; b=lhBa6zcp2uVAMRZmwo99auVT5ooMdh7xzbHV3b/0fj0a5AgK5T6wDJHIMU3e391WhY i59DHtzIZE72pc5QASG+xxQkHpdP1qUcNPj76zGGDSEPzRRhGfRx2M6Xy7J5xTL2Pl1d WnS4Yu0OnZ5yng4tMbEsPXtChvjbggjHD679cZKy7+C2SPmNH8dX/FDQW5AQ9pS8N/Lj SjbXVUmkCQrGAJityRIoOpnXJo0E+Y44dpLDba8MPxmdo0AJzTLPKgSrHetSTz+m1jHj IvJutqQLTrSn1g0S2MJ554N6sow7EAqIL/ppBFxwjBcWb/buSIV+lMYf7MtxMo0PjVOf Peyw== 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 o24si8126496edi.225.2020.09.21.01.04.53; Mon, 21 Sep 2020 01:05:16 -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 S1726963AbgIUICy (ORCPT + 99 others); Mon, 21 Sep 2020 04:02:54 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13789 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726925AbgIUICd (ORCPT ); Mon, 21 Sep 2020 04:02:33 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 963CE9013D99E4B42B04; Mon, 21 Sep 2020 16:02:31 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 16:02:24 +0800 From: Liu Shixin To: Viresh Kumar , Linus Walleij CC: , , , Liu Shixin Subject: [PATCH -next] pinctrl: spear: simplify the return expression of spear310_pinctrl_probe Date: Mon, 21 Sep 2020 16:24:48 +0800 Message-ID: <20200921082448.2591929-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/pinctrl/spear/pinctrl-spear310.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/pinctrl/spear/pinctrl-spear310.c b/drivers/pinctrl/spear/pinctrl-spear310.c index 393b2b97d527..9d9facc4a6e4 100644 --- a/drivers/pinctrl/spear/pinctrl-spear310.c +++ b/drivers/pinctrl/spear/pinctrl-spear310.c @@ -379,8 +379,6 @@ static const struct of_device_id spear310_pinctrl_of_match[] = { static int spear310_pinctrl_probe(struct platform_device *pdev) { - int ret; - spear3xx_machdata.groups = spear310_pingroups; spear3xx_machdata.ngroups = ARRAY_SIZE(spear310_pingroups); spear3xx_machdata.functions = spear310_functions; @@ -392,11 +390,7 @@ static int spear310_pinctrl_probe(struct platform_device *pdev) spear3xx_machdata.modes_supported = false; - ret = spear_pinctrl_probe(pdev, &spear3xx_machdata); - if (ret) - return ret; - - return 0; + return spear_pinctrl_probe(pdev, &spear3xx_machdata); } static struct platform_driver spear310_pinctrl_driver = { -- 2.25.1