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>
This commit is contained in:
parent
e0cbf2f0a7
commit
86d6e5793e
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue