From: Daniel Vetter Date: Wed, 30 Mar 2016 09:51:20 +0000 (+0200) Subject: drm/cirrus: Drop redundnant gamma size check X-Git-Tag: v4.9.8~1605^2~46^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3abb2637b3f3015eebd4119e6b152a613b5a5902;p=platform%2Fkernel%2Flinux-rpi3.git drm/cirrus: Drop redundnant gamma size check The core does this for us already. Cc: Dave Airlie Signed-off-by: Daniel Vetter Reviewed-by: Maarten Lankhorst Signed-off-by: Daniel Vetter Link: http://patchwork.freedesktop.org/patch/msgid/1459331485-28376-6-git-send-email-daniel.vetter@ffwll.ch --- diff --git a/drivers/gpu/drm/cirrus/cirrus_mode.c b/drivers/gpu/drm/cirrus/cirrus_mode.c index d3d8d7b..0b1a411 100644 --- a/drivers/gpu/drm/cirrus/cirrus_mode.c +++ b/drivers/gpu/drm/cirrus/cirrus_mode.c @@ -331,9 +331,6 @@ static void cirrus_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, struct cirrus_crtc *cirrus_crtc = to_cirrus_crtc(crtc); int i; - if (size != CIRRUS_LUT_SIZE) - return; - for (i = 0; i < CIRRUS_LUT_SIZE; i++) { cirrus_crtc->lut_r[i] = red[i]; cirrus_crtc->lut_g[i] = green[i];