[gdm] worker: drop mode_fixed variable



commit 37ed10055e4735af7eb8d5daa371b10978bed136
Author: Ray Strode <rstrode redhat com>
Date:   Tue Mar 3 08:41:50 2015 -0500

    worker: drop mode_fixed variable
    
    it's unused.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=745217

 daemon/gdm-session-worker.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index c0db933..0fe7cce 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -1000,7 +1000,7 @@ handle_terminal_vt_switches (GdmSessionWorker *worker,
         signal (ACQUIRE_DISPLAY_SIGNAL, on_acquire_display);
 }
 
-static gboolean
+static void
 fix_terminal_vt_mode (GdmSessionWorker  *worker,
                       int                tty_fd)
 {
@@ -1030,7 +1030,8 @@ fix_terminal_vt_mode (GdmSessionWorker  *worker,
         handle_terminal_vt_switches (worker, tty_fd);
         mode_fixed = TRUE;
 out:
-        return mode_fixed;
+        g_debug ("GdmSessionWorker: VT mode did %sneed to be fixed",
+                 mode_fixed? "" : "not ");
 }
 
 static void
@@ -1039,13 +1040,11 @@ jump_to_vt (GdmSessionWorker  *worker,
 {
         int fd;
         int active_vt_tty_fd;
-        gboolean mode_fixed = FALSE;
 
         g_debug ("GdmSessionWorker: jumping to VT %d", vt_number);
         active_vt_tty_fd = open ("/dev/tty0", O_RDWR | O_NOCTTY);
 
         if (worker->priv->session_tty_fd != -1) {
-
                 fd = worker->priv->session_tty_fd;
 
                 g_debug ("GdmSessionWorker: first setting graphics mode to prevent flicker");
@@ -1061,7 +1060,7 @@ jump_to_vt (GdmSessionWorker  *worker,
                  * are set in a way that VT_ACTIVATE should work and
                  * VT_WAITACTIVE shouldn't hang.
                  */
-                mode_fixed = fix_terminal_vt_mode (worker, active_vt_tty_fd);
+                fix_terminal_vt_mode (worker, active_vt_tty_fd);
         } else {
                 fd = active_vt_tty_fd;
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]