clk: imx: composite-8m: Less function calls in __imx8m_clk_hw_composite() after error...
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 22 Dec 2023 15:48:24 +0000 (16:48 +0100)
committerAbel Vesa <abel.vesa@linaro.org>
Mon, 26 Feb 2024 08:58:42 +0000 (10:58 +0200)
commitfed6bf52c86df27ad4f39a72cdad8c27da9a50ba
tree8b2555721e4b10157afc53fe6d8306e4bd3f2ac1
parent6613476e225e090cc9aad49be7fa504e290dd33d
clk: imx: composite-8m: Less function calls in __imx8m_clk_hw_composite() after error detection

The function “kfree” was called in up to three cases
by the function “__imx8m_clk_hw_composite” during error handling
even if the passed variables contained a null pointer.

Adjust jump targets according to the Linux coding style convention.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/147ca1e6-69f3-4586-b5b3-b69f9574a862@web.de
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
drivers/clk/imx/clk-composite-8m.c