uterm: video_fbdev: remove double check

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>
This commit is contained in:
David Herrmann 2012-06-23 22:46:42 +02:00
parent ec46dc2909
commit f7e6e1b19b

View 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;