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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);