video: udlfb: Return an error code only as a constant in dlfb_realloc_framebuffer()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 28 Mar 2018 14:34:27 +0000 (16:34 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Wed, 28 Mar 2018 14:34:27 +0000 (16:34 +0200)
commit3c097b069bb82391fcad73373eccbca8400636e7
treec1e3dea525df7bf8ce47d11ee3c1024cdc8aade3
parentb78f8ca82b5f3ee4bf6b3979624ef76fa3de7611
video: udlfb: Return an error code only as a constant in dlfb_realloc_framebuffer()

* Return an error code without storing it in an intermediate variable.

* Delete the label "error" and local variable "retval"
  which became unnecessary with this refactoring.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Cc: Bernie Thompson <bernie@plugable.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/udlfb.c