Bluetooth: Audio: Fix return code in PACS notify
Fix errenous return value in pacs_gatt_notify function. The function would always return zero, and not forward the error correctly. Signed-off-by: Fredrik Danebjer <frdn@demant.com>
This commit is contained in:
parent
df23b0177f
commit
fefbb28edb
1 changed files with 4 additions and 4 deletions
|
@ -795,11 +795,11 @@ static int pacs_gatt_notify(struct bt_conn *conn,
|
|||
atomic_clear(¬ify_rdy);
|
||||
}
|
||||
|
||||
if (err == -ENOTCONN) {
|
||||
return 0;
|
||||
} else {
|
||||
return 0;
|
||||
if (err && err != -ENOTCONN) {
|
||||
return err;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void notify_cb(struct bt_conn *conn, void *data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue