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).
This commit is contained in:
Tim-Philipp Müller 2010-01-16 19:41:29 +00:00
parent 4cdf375b1a
commit 51a462853a

View file

@ -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);