From 51a462853ad8267f457a56711e9c8c9e5cea1f58 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 16 Jan 2010 19:41:29 +0000 Subject: [PATCH] structure: remove superfluous guard against NULL All callers of this static function already check for NULL-ness themselves, so no need to do it again (and if we do it, we should probably do so before dereferencing the pointer for the first time). --- gst/gststructure.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gst/gststructure.c b/gst/gststructure.c index bb0ce56..fe4a92e 100644 --- a/gst/gststructure.c +++ b/gst/gststructure.c @@ -702,7 +702,6 @@ gst_structure_id_get_field (const GstStructure * structure, GQuark field_id) guint i, len; len = structure->fields->len; - g_return_val_if_fail (structure != NULL, NULL); for (i = 0; i < len; i++) { field = GST_STRUCTURE_FIELD (structure, i); -- 2.7.4