Remove an unneeded NULL check
authorMatthias Clasen <mclasen@redhat.com>
Tue, 14 Jun 2011 13:50:55 +0000 (09:50 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 14 Jun 2011 13:50:55 +0000 (09:50 -0400)
data->proxy cannot be NULL here, or we'd have crashed 10 lines up.

gio/gdbusproxy.c

index 6fd181b..e5e5907 100644 (file)
@@ -1658,8 +1658,8 @@ get_connection_cb (GObject       *source_object,
 
   if (data->cancellable != NULL)
     g_object_unref (data->cancellable);
-  if (data->proxy != NULL)
-    g_object_unref (data->proxy);
+
+  g_object_unref (data->proxy);
   g_free (data);
 }