mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
drm/amd/display: Remove else after return statement in 'dm_update_plane_state'
Else is not necessary after return statements, hence remove it.
Reported by checkpatch:
WARNING: else is not generally useful after a break or return
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:9776:
return -EINVAL;
else
Cc: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Cc: Qingqing Zhuo <qingqing.zhuo@amd.com>
Cc: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
c82eddf812
commit
44a4f50d50
@@ -9758,8 +9758,8 @@ static int dm_update_plane_state(struct dc *dc,
|
|||||||
if (plane->type == DRM_PLANE_TYPE_OVERLAY) {
|
if (plane->type == DRM_PLANE_TYPE_OVERLAY) {
|
||||||
if (is_video_format(new_plane_state->fb->format->format) && *is_top_most_overlay)
|
if (is_video_format(new_plane_state->fb->format->format) && *is_top_most_overlay)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
else
|
|
||||||
*is_top_most_overlay = false;
|
*is_top_most_overlay = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
DRM_DEBUG_ATOMIC("Enabling DRM plane: %d on DRM crtc %d\n",
|
DRM_DEBUG_ATOMIC("Enabling DRM plane: %d on DRM crtc %d\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user