Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2953667pxk; Mon, 21 Sep 2020 01:06:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwR5PFJXf6XMvPrgOlyIW0loHwELWn/EkQWVcQxqKQlTzLc2Dz8mr9PXcZn93JK6Px7Fktn X-Received: by 2002:a05:6402:17b9:: with SMTP id j25mr51346285edy.203.1600675572414; Mon, 21 Sep 2020 01:06:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600675572; cv=none; d=google.com; s=arc-20160816; b=X1u1u//2qLuQEewMpDmWYtVDcEMbTuDis2NbU5wf5fnWkk3lXHHh/bJnRyYd+vlyHH L8RPfh7B9t9ofTRBwdEZoKbDnZmw75beY2Uhb7tqrIwUZUvLYZxURprSkQJk34Mhe3QM i94jSlb2sy1MGG6B3x1lo/ndas8PcJ0AC6YCiIlwdzoi2Ph/AaCvqpcast0j1SCE6lT2 kZTZeuNDwaVebmVvLcDFV+vajvn2xgPa4EznhkjxZhIMbeika+i8RxUZTjR2XGL7l63R xw3tvVP22Up6ga1AkIjtJXiTPspLkMBknAw9Uy/wbE/ioSJE7UyBs2sLQiFe2ve6k8oX BvYw== 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=6xskI8wZGgXFVaOIVz7WeuKDMVPRmH3b1oNPxsQvFrg=; b=U+sO+Wp82z/jen7msKseopR7iARjTzKAyja8fI99Ru4ScISmMXosfiPtyCBtftBMfL hL1fo4kRRpU8sOFYP7wAnV2FonQ4Ul/14AcjflCvTxaR3fCcdmIXV7FcXUEIbeTDZvit dHQNmRFRV6BaAOsw55JJDATq2uEVK6LN5vlIai0hKQmX4JXrJ0RUCn4pNls2RJoUFr9j 7eNY2inAIBBd5jcjwyoetpzxqWhd4oU6nO8n+s+AZYG7DqHbCCm8ofwYyfxiR5+S8Amp dI6gHqG9a78FxW+IfRNY5XvzzSDVOJ+W0PkRQwufjYdtz+c3sBmG5ZOwpyMqUvWVp05y Vvkg== 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 d25si7688963eje.181.2020.09.21.01.05.48; Mon, 21 Sep 2020 01:06:12 -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 S1727067AbgIUIDq (ORCPT + 99 others); Mon, 21 Sep 2020 04:03:46 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:13742 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726886AbgIUICY (ORCPT ); Mon, 21 Sep 2020 04:02:24 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 59A5B41D858DED3A688D; Mon, 21 Sep 2020 16:02:23 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 16:02:13 +0800 From: Liu Shixin To: Georgi Djakov , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team CC: , , , Liu Shixin Subject: [PATCH -next] interconnect: simplify the return expression of imx_icc_unregister Date: Mon, 21 Sep 2020 16:24:37 +0800 Message-ID: <20200921082437.2591461-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/interconnect/imx/imx.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/interconnect/imx/imx.c b/drivers/interconnect/imx/imx.c index ac420f86008e..40fa22a32a60 100644 --- a/drivers/interconnect/imx/imx.c +++ b/drivers/interconnect/imx/imx.c @@ -269,15 +269,10 @@ EXPORT_SYMBOL_GPL(imx_icc_register); int imx_icc_unregister(struct platform_device *pdev) { struct icc_provider *provider = platform_get_drvdata(pdev); - int ret; imx_icc_unregister_nodes(provider); - ret = icc_provider_del(provider); - if (ret) - return ret; - - return 0; + return icc_provider_del(provider); } EXPORT_SYMBOL_GPL(imx_icc_unregister); -- 2.25.1