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

drm/exynos: use logical AND in exynos_drm_plane_check_size()

The current bitwise AND should result in the same assembler
but this is what the code is actually supposed to do.

Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: Inki Dae <inki.dae@samsung.com>

authored by

Tobias Jakobi and committed by
Inki Dae
41abbf5a f0fcf43f

+1 -1
+1 -1
drivers/gpu/drm/exynos/exynos_drm_plane.c
··· 242 242 state->v_ratio == (1 << 15)) 243 243 height_ok = true; 244 244 245 - if (width_ok & height_ok) 245 + if (width_ok && height_ok) 246 246 return 0; 247 247 248 248 DRM_DEBUG_KMS("scaling mode is not supported");