Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/exynos: exynos7-decon: remove excessive check

Display area is already checked by exynos plane core, so there is no
need for such check in driver code.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>

authored by

Marek Szyprowski and committed by
Inki Dae
42f8119c 43f02a6c

-10
-10
drivers/gpu/drm/exynos/exynos7_drm_decon.c
··· 394 394 struct exynos_drm_plane *plane) 395 395 { 396 396 struct decon_context *ctx = crtc->ctx; 397 - struct drm_display_mode *mode = &crtc->base.state->adjusted_mode; 398 397 struct drm_plane_state *state = plane->base.state; 399 398 int padding; 400 399 unsigned long val, alpha; ··· 434 435 (unsigned long)val); 435 436 DRM_DEBUG_KMS("ovl_width = %d, ovl_height = %d\n", 436 437 plane->crtc_w, plane->crtc_h); 437 - 438 - /* 439 - * OSD position. 440 - * In case the window layout goes of LCD layout, DECON fails. 441 - */ 442 - if ((plane->crtc_x + plane->crtc_w) > mode->hdisplay) 443 - plane->crtc_x = mode->hdisplay - plane->crtc_w; 444 - if ((plane->crtc_y + plane->crtc_h) > mode->vdisplay) 445 - plane->crtc_y = mode->vdisplay - plane->crtc_h; 446 438 447 439 val = VIDOSDxA_TOPLEFT_X(plane->crtc_x) | 448 440 VIDOSDxA_TOPLEFT_Y(plane->crtc_y);