drm/amd/display: Use _free(kfree) for dm_gpureset_commit_state()
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 18 Feb 2025 04:58:36 +0000 (22:58 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Mar 2025 15:42:08 +0000 (10:42 -0500)
commitd13fbeb74b7c22e2a22c3d2b8e39a9b8142128a9
tree0316b33e43df70ef4c98730e99ab52d42e3e3347
parent7b3e14acc1f205d05d001bdceb884c5568ef10b7
drm/amd/display: Use _free(kfree) for dm_gpureset_commit_state()

Using a _free(kfree) macro drops the need for a goto statement
as it will be freed when it goes out of scope.

Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c