drm/fb: small cleanup
authorRob Clark <[email protected]>
Wed, 11 Mar 2015 14:23:13 +0000 (10:23 -0400)
committerDaniel Vetter <[email protected]>
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 <[email protected]>
Reviewed-by: Daniel Kurtz <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
drivers/gpu/drm/drm_fb_helper.c