aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h
diff options
context:
space:
mode:
authorShivani Gupta <shivani07g@gmail.com>2024-04-15 00:39:58 +0000
committerInki Dae <inki.dae@samsung.com>2024-04-25 09:37:12 +0900
commitd65bfb9546eb627e3c578336355c5b81797f2255 (patch)
treedbaa7018c18e5fc39e0e9964dc6ea7c02f871438 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h
parentedb8e86711d4e216d1dbd3acdfad4c10ca618436 (diff)
gpu: drm: exynos: hdmi: eliminate uses of of_node_put()
Utilize the __free() cleanup handler within the hdmi_get_phy_io function to automatically release the device node when it is out of scope. This eliminates the manual invocation of of_node_put(), reducing the potential for memory leaks. The modification requires initializing the device node at the beginning of the function, ensuring that the automatic cleanup is safely executed. Consequently, this removes the need for error cleanup paths that utilize goto statements and the jump to out is no longer necessary. Suggested-by: Julia Lawall <julia.lawall@inria.fr> Signed-off-by: Shivani Gupta <shivani07g@gmail.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h')
0 files changed, 0 insertions, 0 deletions