registry: name is never NULL
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 21 Oct 2009 01:43:58 +0000 (21:43 -0400)
committerWim Taymans <wim@metal.(none)>
Wed, 21 Oct 2009 01:43:58 +0000 (21:43 -0400)
When looking up a feature by name, we never call this internal
function with NULL so we don't have to check for it.

gst/gstregistry.c

index bbbc764..470628e 100644 (file)
@@ -729,9 +729,6 @@ gst_registry_get_plugin_list (GstRegistry * registry)
 static GstPluginFeature *
 gst_registry_lookup_feature_locked (GstRegistry * registry, const char *name)
 {
-  if (G_UNLIKELY (name == NULL))
-    return NULL;
-
   return g_hash_table_lookup (registry->feature_hash, name);
 }