]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
power: supply: wm97xx: Use devm_kcalloc()
authorWaqar Hameed <waqar.hameed@axis.com>
Fri, 23 Jan 2026 08:55:43 +0000 (09:55 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 30 Jan 2026 19:57:32 +0000 (20:57 +0100)
commit72db889394d89ffde61e7438f0cdfc0135c9da48
treefe441cc0f637058ff9e69b4e346e24d3bbc9a6fb
parent23067259919663580c6f81801847cfc7bd54fd1f
power: supply: wm97xx: Use devm_kcalloc()

Instead of handling the memory allocation manually, use the automatic
`devres` variant `devm_kcalloc()`. This is less error prone and
eliminates the `goto`-path.

Signed-off-by: Waqar Hameed <waqar.hameed@axis.com>
Link: https://patch.msgid.link/5ac93f5b0fa417bb5d9e93b9302a18f2c04d4077.1769158280.git.waqar.hameed@axis.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/wm97xx_battery.c