validate: Do not check NULL pointer uselessly
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Tue, 18 Jul 2017 14:07:34 +0000 (10:07 -0400)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Tue, 18 Jul 2017 14:10:06 +0000 (10:10 -0400)
CID 141593

validate/gst/validate/gst-validate-element-monitor.c

index 01332a1..79a71b3 100644 (file)
@@ -207,8 +207,7 @@ gst_validate_element_monitor_inspect (GstValidateElementMonitor * monitor)
   } else
     GST_ERROR_OBJECT (element, "no klassname");
 
-  if (element)
-    gst_object_unref (element);
+  gst_object_unref (element);
 }
 
 static void