drm/fb: small cleanup
authorRob Clark <robdclark@gmail.com>
Wed, 11 Mar 2015 14:23:13 +0000 (10:23 -0400)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 11 Mar 2015 21:09:39 +0000 (22:09 +0100)
commit675c8328db6548f00a4e60770e66ab53752d6bf2
tree3bd54b03008a971013ee1c8ac63e79c764c74fe0
parentd3c8ea3460fa9ca8a19eea8813071dee0b07c293
drm/fb: small cleanup

Flip conditional to reduce indentation level of rest of fxn, and use
min/max to make the code clearer.

v2: surface_width -> surface_height typo

Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_fb_helper.c