video/macfb: Remove redundant code
authorFinn Thain <fthain@telegraphics.com.au>
Mon, 1 Apr 2019 15:46:54 +0000 (17:46 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Mon, 1 Apr 2019 15:46:54 +0000 (17:46 +0200)
commite4995b12e749873f25bd4c64ba056f506a6d2f1a
treea269229ff42a95173426f6166ab5883d49ab694a
parent3f98434235c9d15d389458a9f30fb184db9693ac
video/macfb: Remove redundant code

The value of info->var.bits_per_pixel get checked in macfb_setcolreg().
Remove additional checks as they are redundant.

macfb_defined.activate gets initialized to FB_ACTIVATE_NOW by the struct
initializer. Remove redundant assignments.

macfb_defined.bits_per_pixel, .width and .height all get assigned
unconditionally. Remove redundant initializers.

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Tested-by: Stan Johnson <userm57@yahoo.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/macfb.c