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



commit f30cbe521788ed1b8222f31d4c8e043b84956b84
Author: Kalev Lember <kalevlember gmail com>
Date:   Mon Apr 28 13:49:41 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]