net: fsl_enetc: Fix copy/paste error
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Mon, 4 Aug 2025 16:56:55 +0000 (17:56 +0100)
committerPeng Fan <peng.fan@nxp.com>
Wed, 27 Aug 2025 07:42:07 +0000 (15:42 +0800)
commitf4c2a12611d3ffdbd624ededf0fce192f26dddaf
tree9549b188d365c4e752afaa2e44299d41fe5775cb
parent5b95f666fbd8f9c9c43726c7ced229762e4a35e0
net: fsl_enetc: Fix copy/paste error

In netc_blk_ctrl_probe the test for failure of the function
clk_prepare_enable should not return PTR_ERR(ipg_clk) as it does not
check IS_ERR(ipg_clk) instead it should return err as that is what is
holding the error code in this case.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/net/fsl_enetc_netc_blk_ctrl.c