summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorShirish S <shirish.s@amd.com>2017-11-07 08:56:25 +0530
committerAlex Deucher <alexander.deucher@amd.com>2017-12-06 12:47:53 -0500
commit35888630cb65d2a7e28f44b042b671f7d6e91f60 (patch)
tree0b710398c0aa11a294dad3a8af9fbbdef5a5a8fa /drivers
parent1719efc2327dc7485f30f6674c6ba4a793ac3a25 (diff)
downloadlinux-stable-35888630cb65d2a7e28f44b042b671f7d6e91f60.tar.gz
linux-stable-35888630cb65d2a7e28f44b042b671f7d6e91f60.tar.bz2
linux-stable-35888630cb65d2a7e28f44b042b671f7d6e91f60.zip
drm/amd/display: fix static checker warning
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 80567aa1968e..41e829ac2a57 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -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