diff options
author | Liu Shixin | 2020-09-21 16:24:37 +0800 |
---|---|---|
committer | Georgi Djakov | 2020-09-21 11:15:02 +0300 |
commit | 86d6e5793e0fa3a510cff466894d0d3051fd716e (patch) | |
tree | 494a38b651186fa5f838360de8a7b52639b650a3 /drivers/interconnect | |
parent | e0cbf2f0a756f27d7b468947123d6ac9d3fc059f (diff) |
interconnect: imx: simplify the return expression of imx_icc_unregister
Simplify the return expression.
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Link: https://lore.kernel.org/r/20200921082437.2591461-1-liushixin2@huawei.com
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Diffstat (limited to 'drivers/interconnect')
-rw-r--r-- | drivers/interconnect/imx/imx.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/interconnect/imx/imx.c b/drivers/interconnect/imx/imx.c index b364d339f797..41dba7090c2a 100644 --- a/drivers/interconnect/imx/imx.c +++ b/drivers/interconnect/imx/imx.c @@ -267,15 +267,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); |