From 6ba1fcec3fe9a527ccd2a956cd6860290a0c02eb Mon Sep 17 00:00:00 2001 From: Stephane D'Alu Date: Sat, 16 Nov 2019 23:40:55 +0100 Subject: [PATCH] Bluetooth: shell: Fix missing return statement for name command Return once bt name has been displayed Signed-off-by: Stephane D'Alu --- subsys/bluetooth/shell/bt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subsys/bluetooth/shell/bt.c b/subsys/bluetooth/shell/bt.c index a12b3d072db..870c0f1e0aa 100644 --- a/subsys/bluetooth/shell/bt.c +++ b/subsys/bluetooth/shell/bt.c @@ -318,6 +318,7 @@ static int cmd_name(const struct shell *shell, size_t argc, char *argv[]) if (argc < 2) { shell_print(shell, "Bluetooth Local Name: %s", bt_get_name()); + return 0; } err = bt_set_name(argv[1]);