[gdm] daemon: Remove unnecessary check for function that can't return NULL



commit d70d0ff5b23a1e51107f9e4f78530ff2fcd5da73
Author: Robert Ancell <robert ancell canonical com>
Date:   Thu Sep 28 13:55:52 2017 -0400

    daemon: Remove unnecessary check for function that can't return NULL
    
    https://bugzilla.gnome.org/show_bug.cgi?id=788299

 daemon/main.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/daemon/main.c b/daemon/main.c
index a2add01..010fff2 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -359,11 +359,6 @@ main (int    argc,
         gdm_log_init ();
 
         settings = gdm_settings_new ();
-        if (settings == NULL) {
-                g_warning ("Unable to initialize settings");
-                goto out;
-        }
-
         if (! gdm_settings_direct_init (settings, DATADIR "/gdm/gdm.schemas", "/")) {
                 g_warning ("Unable to initialize settings");
                 goto out;


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