diff options
author | Todor Tomov <ttomov@mm-sol.com> | 2011-02-11 16:24:03 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-02-17 14:30:28 +0100 |
commit | fb6243b5b25632e96d39ac28b3433811411396b2 (patch) | |
tree | d370dbedf1752d5947137c930a0d13987133dc10 | |
parent | dd2502744bd68ff97d981bad9bd1e4edb219a366 (diff) |
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 <ttomov@mm-sol.com>
-rw-r--r-- | src/media.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |