diff --git a/subsys/bluetooth/audio/pacs.c b/subsys/bluetooth/audio/pacs.c index f566645d5b5..2ce6db23a9f 100644 --- a/subsys/bluetooth/audio/pacs.c +++ b/subsys/bluetooth/audio/pacs.c @@ -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)