Commit e19c6fe8 authored by Markus Elfring's avatar Markus Elfring Committed by Greg Kroah-Hartman
Browse files

clk: imx: composite-8m: Less function calls in __imx8m_clk_hw_composite() after error detection



[ Upstream commit fed6bf52 ]

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Reviewed-by: default avatarPeng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/147ca1e6-69f3-4586-b5b3-b69f9574a862@web.de


Signed-off-by: default avatarAbel Vesa <abel.vesa@linaro.org>
Stable-dep-of: 8f32e9dd ("clk: imx: composite-8m: Enable gate clk with mcore_booted")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 0557c1d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment