Skip to content

Commit 8c29bb0

Browse files
ThalleyMaureenHelm
authored andcommitted
Bluetooth: TBS: Replace CHECKIF with if
The usage of CHECKIF has been replaced with a regular if. The reason for this is that higher layer may depend on some of the checks defined by the API, and the higher layers cannot do that properly if the checks can be removed via a Kconfig option. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
1 parent 50d57b2 commit 8c29bb0

File tree

1 file changed

+1
-2
lines changed
  • subsys/bluetooth/audio

1 file changed

+1
-2
lines changed

‎subsys/bluetooth/audio/tbs.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include <zephyr/sys/__assert.h>
3131
#include <zephyr/sys/atomic.h>
3232
#include <zephyr/sys/byteorder.h>
33-
#include <zephyr/sys/check.h>
3433
#include <zephyr/sys/util.h>
3534
#include <zephyr/sys/util_macro.h>
3635
#include <zephyr/sys/util_utf8.h>
@@ -2257,7 +2256,7 @@ int bt_tbs_register_bearer(const struct bt_tbs_register_param *param)
22572256
{
22582257
int ret = -ENOEXEC;
22592258

2260-
CHECKIF(!valid_register_param(param)) {
2259+
if (!valid_register_param(param)) {
22612260
LOG_DBG("Invalid parameters");
22622261

22632262
return -EINVAL;

0 commit comments

Comments
 (0)