bluez: Fix unnecessary NULL checks
authorJohan Hedberg <johan.hedberg@nokia.com>
Fri, 2 Oct 2009 08:58:54 +0000 (10:58 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 9 Jan 2013 14:30:12 +0000 (14:30 +0000)
sys/bluez/gsta2dpsink.c

index 38467da..c92d697 100644 (file)
@@ -139,8 +139,7 @@ remove_element_and_fail:
   return NULL;
 
 cleanup_and_fail:
-  if (element != NULL)
-    g_object_unref (G_OBJECT (element));
+  g_object_unref (G_OBJECT (element));
 
   return NULL;
 }