]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/display: fix static checker warning
authorShirish S <shirish.s@amd.com>
Tue, 7 Nov 2017 03:26:25 +0000 (08:56 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:47:53 +0000 (12:47 -0500)
This patch fixes static checker warning of
"warn: cast after binop" introduced by
56087b31 drm/amd/display: fix high part address in dm_plane_helper_prepare_fb()

Signed-off-by: Shirish S <shirish.s@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 80567aa1968e04e250435f1d1c2fc4df9cdbfb2d..41e829ac2a57356fffe210e256c203b6bf01725f 100644 (file)
@@ -3001,7 +3001,7 @@ static int dm_plane_helper_prepare_fb(struct drm_plane *plane,
                                                        = lower_32_bits(afb->address);
                        plane_state->address.video_progressive.luma_addr.high_part
                                                        = upper_32_bits(afb->address);
-                       chroma_addr = afb->address + (u64)(awidth * new_state->fb->height);
+                       chroma_addr = afb->address + (u64)awidth * new_state->fb->height;
                        plane_state->address.video_progressive.chroma_addr.low_part
                                                        = lower_32_bits(chroma_addr);
                        plane_state->address.video_progressive.chroma_addr.high_part