From fb6243b5b25632e96d39ac28b3433811411396b2 Mon Sep 17 00:00:00 2001 From: Todor Tomov Date: Fri, 11 Feb 2011 16:24:03 +0200 Subject: Use local variable to access link's flags in media_enum_links() Local variable link is defined in media_enum_links() for more simple access to link's data. Use it when accessing link's flags. Signed-off-by: Todor Tomov --- src/media.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/media.c') diff --git a/src/media.c b/src/media.c index 456b882..114bd13 100644 --- a/src/media.c +++ b/src/media.c @@ -225,12 +225,12 @@ static int media_enum_links(struct media_device *media) fwdlink = media_entity_add_link(source); fwdlink->source = &source->pads[link->source.index]; fwdlink->sink = &sink->pads[link->sink.index]; - fwdlink->flags = links.links[i].flags; + fwdlink->flags = link->flags; backlink = media_entity_add_link(sink); backlink->source = &source->pads[link->source.index]; backlink->sink = &sink->pads[link->sink.index]; - backlink->flags = links.links[i].flags; + backlink->flags = link->flags; fwdlink->twin = backlink; backlink->twin = fwdlink; -- cgit v1.2.3