Skip to content

Commit

Permalink
Bluetooth: Shell: Fix coverity issue in cmd_adv_data
Browse files Browse the repository at this point in the history
Fix wrong parameter type to avoid Unsigned compared against 0

Fixes: zephyrproject-rtos#65578

Signed-off-by: Hang Fan <[email protected]>
  • Loading branch information
Fanhang32 authored and jhedberg committed Dec 27, 2023
1 parent ff62faa commit 915f0fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/bluetooth/shell/bt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2001,7 +2001,7 @@ static int cmd_adv_data(const struct shell *sh, size_t argc, char *argv[])
size_t hex_data_len;
size_t ad_len = 0;
size_t sd_len = 0;
size_t len = 0;
ssize_t len = 0;
bool discoverable = false;
size_t *data_len;
int err;
Expand Down

0 comments on commit 915f0fd

Please sign in to comment.