mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-11 10:27:21 +07:00
drm/amd/display: Tidy up dm_drm_plane_reset()
Move WARN_ON higher up and in doing so fix brace style. Signed-off-by: Tom St Denis <tom.stdenis@amd.com> Acked-by: Andrey Grodzovsky <andey.grodzovsky@amd.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
a68d90e7ae
commit
f922237daa
@ -2873,13 +2873,13 @@ static void dm_drm_plane_reset(struct drm_plane *plane)
|
||||
plane->funcs->atomic_destroy_state(plane, plane->state);
|
||||
|
||||
amdgpu_state = kzalloc(sizeof(*amdgpu_state), GFP_KERNEL);
|
||||
|
||||
WARN_ON(amdgpu_state == NULL);
|
||||
|
||||
if (amdgpu_state) {
|
||||
plane->state = &amdgpu_state->base;
|
||||
plane->state->plane = plane;
|
||||
plane->state->rotation = DRM_MODE_ROTATE_0;
|
||||
} else
|
||||
WARN_ON(1);
|
||||
}
|
||||
}
|
||||
|
||||
static struct drm_plane_state *
|
||||
|
Loading…
Reference in New Issue
Block a user