From 150bbff449c787f26b7de3e6006bdb2ea6365b08 Mon Sep 17 00:00:00 2001 From: Christian Eggers Date: Thu, 25 Aug 2022 22:38:48 +0200 Subject: tools/btmgmt: add missing return statement Leave function on error instead of printing (possibly) invalid flags. --- tools/btmgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/btmgmt.c b/tools/btmgmt.c index ebef3888f..29f86091f 100644 --- a/tools/btmgmt.c +++ b/tools/btmgmt.c @@ -2183,7 +2183,7 @@ static void get_flags_rsp(uint8_t status, uint16_t len, const void *param, if (status != 0) { error("Get device flags failed with status 0x%02x (%s)", status, mgmt_errstr(status)); - bt_shell_noninteractive_quit(EXIT_FAILURE); + return bt_shell_noninteractive_quit(EXIT_FAILURE); } print("Supported Flags: 0x%08x", rp->supported_flags); -- cgit v1.2.1