gpu/drm: cleanup coding style a bit
authorBernard Zhao <bernard@vivo.com>
Mon, 7 Sep 2020 12:31:29 +0000 (05:31 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 9 Sep 2020 09:45:18 +0000 (11:45 +0200)
commitbbd9caa02c70e4719f82f205d38c916f53ae8408
tree335a6fee3310c4233987053a136937c595589275
parentdeb2464e4c6dca2c933a53e2cb8c78a75ad5131c
gpu/drm: cleanup coding style a bit

Remove first assignment to info which is meaningless.
Put the width and higth check first.
This change is to make the code a bit readable.

Signed-off-by: Bernard Zhao <bernard@vivo.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200907123129.27905-1-bernard@vivo.com
drivers/gpu/drm/drm_framebuffer.c