mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
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:
parent
4cdf375b1a
commit
51a462853a
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue