aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/uvesafb.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/video/uvesafb.c b/drivers/video/uvesafb.c
index 70a02a2d60bf..17e262ecd4d0 100644
--- a/drivers/video/uvesafb.c
+++ b/drivers/video/uvesafb.c
@@ -1474,12 +1474,7 @@ static void uvesafb_init_info(struct fb_info *info, struct vbe_mode_ib *mode)
1474 * used video mode, i.e. the minimum amount of 1474 * used video mode, i.e. the minimum amount of
1475 * memory we need. 1475 * memory we need.
1476 */ 1476 */
1477 if (mode != NULL) { 1477 size_vmode = info->var.yres * mode->bytes_per_scan_line;
1478 size_vmode = info->var.yres * mode->bytes_per_scan_line;
1479 } else {
1480 size_vmode = info->var.yres * info->var.xres *
1481 ((info->var.bits_per_pixel + 7) >> 3);
1482 }
1483 1478
1484 /* 1479 /*
1485 * size_total -- all video memory we have. Used for mtrr 1480 * size_total -- all video memory we have. Used for mtrr