video/fbdev: refactor video= cmdline parsing
authorJani Nikula <jani.nikula@intel.com>
Fri, 8 Feb 2019 18:24:47 +0000 (19:24 +0100)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 8 Feb 2019 18:24:47 +0000 (19:24 +0100)
commita41458d74c241f2c39ee23fef88df166c3c26a85
tree226aa3e6dee44864688408e7d873548f63072f3f
parent72aed9e31344a62e6cab2c49a27fd0bc740add63
video/fbdev: refactor video= cmdline parsing

Make the video_setup() function slightly easier to read by removing the
repeated checks for !global. Remove the misleading return value comment
while at it.

I'm slightly hesitant to change any of this, but here goes anyway, with
hopes that the next person to have to look at this has it a wee bit
easier.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/core/fb_cmdline.c