Commit 7d56f62d authored by Christian Gromm's avatar Christian Gromm Committed by Greg Kroah-Hartman

staging: most: cdev: fix function return value

The function ch_get_mbo declares its return value as type bool,
but returns a pointer to mbo.
Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3b1a774b
...@@ -53,7 +53,7 @@ static inline bool ch_has_mbo(struct comp_channel *c) ...@@ -53,7 +53,7 @@ static inline bool ch_has_mbo(struct comp_channel *c)
return channel_has_mbo(c->iface, c->channel_id, &comp.cc) > 0; return channel_has_mbo(c->iface, c->channel_id, &comp.cc) > 0;
} }
static inline bool ch_get_mbo(struct comp_channel *c, struct mbo **mbo) static inline struct mbo *ch_get_mbo(struct comp_channel *c, struct mbo **mbo)
{ {
if (!kfifo_peek(&c->fifo, mbo)) { if (!kfifo_peek(&c->fifo, mbo)) {
*mbo = most_get_mbo(c->iface, c->channel_id, &comp.cc); *mbo = most_get_mbo(c->iface, c->channel_id, &comp.cc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment