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: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3b1a774bfc
commit
7d56f62d3c
|
@ -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;
|
||||
}
|
||||
|
||||
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)) {
|
||||
*mbo = most_get_mbo(c->iface, c->channel_id, &comp.cc);
|
||||
|
|
Loading…
Reference in New Issue