From 50b9a3ecc364c21d1896df88b76c540a229861f5 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 20 Oct 2009 21:43:58 -0400 Subject: [PATCH] registry: name is never NULL 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 | 3 --- 1 file changed, 3 deletions(-) diff --git a/gst/gstregistry.c b/gst/gstregistry.c index bbbc76464d..470628e74b 100644 --- a/gst/gstregistry.c +++ b/gst/gstregistry.c @@ -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); }