[glib] Remove unneeded NULL check
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Remove unneeded NULL check
- Date: Tue, 14 Jun 2011 15:41:40 +0000 (UTC)
commit 339cac8fc71f9409f97a4bfc3f42f912c262c06d
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jun 14 09:53:26 2011 -0400
Remove unneeded NULL check
We ensure 10 lines up that parameters is not NULL.
gio/gdbusconnection.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c
index c0ad4e8..2319fc0 100644
--- a/gio/gdbusconnection.c
+++ b/gio/gdbusconnection.c
@@ -3423,8 +3423,7 @@ emit_signal_instance_in_idle_cb (gpointer data)
parameters,
signal_instance->user_data);
- if (parameters != NULL)
- g_variant_unref (parameters);
+ g_variant_unref (parameters);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]