[gnome-software/wip/installed_updates: 2/10] shell updates: Remove NULL checks around g_list_free



commit 85a223557f1a2f3db920a3c6d515ff33ea6983af
Author: Kalev Lember <kalevlember gmail com>
Date:   Tue May 6 11:59:33 2014 +0200

    shell updates: Remove NULL checks around g_list_free
    
    NULL is a valid GList; no need to special case it.

 src/gs-shell-updates.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-shell-updates.c b/src/gs-shell-updates.c
index 3e457fb..3011a8c 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -469,8 +469,7 @@ gs_shell_updates_get_updates_cb (GsPluginLoader *plugin_loader,
        }
 
 out:
-       if (list != NULL)
-               gs_plugin_list_free (list);
+       gs_plugin_list_free (list);
 }
 
 /**


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