fbdev: offb: replace of_node_put with __free(device_node)
authorAbdulrasaq Lawani <abdulrasaqolawani@gmail.com>
Tue, 23 Apr 2024 01:20:21 +0000 (21:20 -0400)
committerHelge Deller <deller@gmx.de>
Thu, 25 Apr 2024 10:13:06 +0000 (12:13 +0200)
commitce4a7ae84a58b9f33aae8d6c769b3c94f3d5ce76
tree11604efbb094416b505e763e030d7e82993e9ac6
parent6ad959b6703e2c4c5d7af03b4cfd5ff608036339
fbdev: offb: replace of_node_put with __free(device_node)

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>
drivers/video/fbdev/offb.c