drm/komeda: Fix warning -Wunused-but-set-variable
authorjames qian wang (Arm Technology China) <james.qian.wang@arm.com>
Mon, 12 Aug 2019 11:23:41 +0000 (11:23 +0000)
committerjames qian wang (Arm Technology China) <james.qian.wang@arm.com>
Fri, 23 Aug 2019 11:40:33 +0000 (19:40 +0800)
commit61d05b184963523e50729af8466b72e9c8a4f8be
tree127590c3039ec10d61d5e830acbbe66aba02d410
parent8f6a79112a360ff05b8aa4a9be081d3eb9057077
drm/komeda: Fix warning -Wunused-but-set-variable

Fixed two -Wunused-but-set-variable warnings:

/arm/linux/display/aosp-4.14-drm-next/drivers/gpu/drm/arm/display/komeda/komeda_kms.c: In function ‘komeda_crtc_normalize_zpos’:
/arm/linux/display/aosp-4.14-drm-next/drivers/gpu/drm/arm/display/komeda/komeda_kms.c:150:26: warning: variable ‘fb’ set but not used [-Wunused-but-set-variable]
  struct drm_framebuffer *fb;
                          ^~
/arm/linux/display/aosp-4.14-drm-next/drivers/gpu/drm/arm/display/komeda/komeda_kms.c: In function ‘komeda_kms_check’:
/arm/linux/display/aosp-4.14-drm-next/drivers/gpu/drm/arm/display/komeda/komeda_kms.c:209:25: warning: variable ‘old_crtc_st’ set but not used [-Wunused-but-set-variable]
  struct drm_crtc_state *old_crtc_st, *new_crtc_st;
                         ^~~~~~~~~~~

Signed-off-by: james qian wang (Arm Technology China) <james.qian.wang@arm.com>
Reviewed-by: Ayan Kumar Halder <ayan.halder@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190812112322.15990-1-james.qian.wang@arm.com
drivers/gpu/drm/arm/display/komeda/komeda_kms.c