[gnome-software/wip/installed_updates: 2/16] shell updates: Remove NULL checks around g_list_free
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/installed_updates: 2/16] shell updates: Remove NULL checks around g_list_free
- Date: Mon, 12 May 2014 12:48:06 +0000 (UTC)
commit e79e42db1d5a8cdab1e1274f591189963d9cbd84
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]