fbdev: offb: replace of_node_put with __free(device_node)

[ Upstream commit ce4a7ae84a ]

Replaced instance of of_node_put with __free(device_node)
to simplify code and protect against any memory leaks
due to future changes in the control flow.

Suggested-by: Julia Lawall <julia.lawall@inria.fr>
Signed-off-by: Abdulrasaq Lawani <abdulrasaqolawani@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Abdulrasaq Lawani 2024-04-22 21:20:21 -04:00 • committed by Greg Kroah-Hartman
commit 96ee5c5712