uterm: video_fbdev: remove double check
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 23 Jun 2012 20:46:42 +0000 (22:46 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 23 Jun 2012 20:46:42 +0000 (22:46 +0200)
There is no need to check this twice so move it beyond the last vinfo
modification.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/uterm_video_fbdev.c

index 4d7f3e6..5709bba 100644 (file)
@@ -124,13 +124,6 @@ static int display_activate_force(struct uterm_display *disp,
                return -EFAULT;
        }
 
-       if (vinfo->yres_virtual < vinfo->yres * 2 ||
-           vinfo->xres_virtual < vinfo->xres) {
-               log_error("device %s does no double-buffering",
-                         disp->fbdev.node);
-               return -EFAULT;
-       }
-
        ret = refresh_info(disp);
        if (ret)
                return ret;