Bluetooth: fix C++ compile error
C++ disallows implicit cast to enum values. Signed-off-by: Rihards Skuja <rihardssk@mikrotik.com>
This commit is contained in:
parent
d83875f32a
commit
3b89f4a474
1 changed files with 2 additions and 1 deletions
|
@ -130,7 +130,8 @@ static inline void bt_buf_set_type(struct net_buf *buf, enum bt_buf_type type)
|
|||
*/
|
||||
static inline enum bt_buf_type bt_buf_get_type(struct net_buf *buf)
|
||||
{
|
||||
return ((struct bt_buf_data *)net_buf_user_data(buf))->type;
|
||||
return (enum bt_buf_type)((struct bt_buf_data *)net_buf_user_data(buf))
|
||||
->type;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue