staging: most: cdev: fix function return value
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 8 May 2018 09:45:08 +0000 (11:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 May 2018 11:41:50 +0000 (13:41 +0200)
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>
drivers/staging/most/cdev/cdev.c

index 9ce7fd2a07e7a93f79792989ac3d57ca54a965f2..8e7652545402972e5eff389f4b6a764ff29084ac 100644 (file)
@@ -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);