changeset 29357:1de6b286ceb1

Get rid of completely pointless vt_doit variable
author reimar
date Fri, 26 Jun 2009 15:38:40 +0000
parents aba22a71e58f
children 7b2a6a462bfc
files libvo/vo_fbdev.c
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_fbdev.c	Fri Jun 26 15:28:30 2009 +0000
+++ b/libvo/vo_fbdev.c	Fri Jun 26 15:38:40 2009 +0000
@@ -556,7 +556,6 @@
 
 /* vt related variables */
 static FILE *vt_fp = NULL;
-static int vt_doit = 1;
 
 /* vo_fbdev related variables */
 static int fb_dev_fd;
@@ -969,12 +968,10 @@
         if (fs || vm)
             memset(frame_buffer, '\0', fb_line_len * fb_yres);
     }
-    if (vt_doit && !(vt_fp = fopen("/dev/tty", "w"))) {
+    if (!(vt_fp = fopen("/dev/tty", "w"))) {
         mp_msg(MSGT_VO, MSGL_ERR, "can't fopen /dev/tty: %s\n", strerror(errno));
-        vt_doit = 0;
     }
 
-    if (vt_doit)
         vt_set_textarea(last_row, fb_yres);
 
     return 0;
@@ -1059,7 +1056,6 @@
         if (ioctl(fb_tty_fd, KDSETMODE, KD_TEXT) < 0)
             mp_msg(MSGT_VO, MSGL_WARN, "Can't restore text mode: %s\n", strerror(errno));
     }
-    if (vt_doit)
         vt_set_textarea(0, fb_orig_vinfo.yres);
     close(fb_tty_fd);
     close(fb_dev_fd);