diff options
author | Christian Eggers <ceggers@arri.de> | 2022-08-25 22:38:48 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-08-29 13:06:35 -0700 |
commit | 150bbff449c787f26b7de3e6006bdb2ea6365b08 (patch) | |
tree | 48f017f3bd5cd9cde843bd9259530608f6da7b7b /tools | |
parent | 147cc4cf99fdb24f77b46472386e2fdff3098451 (diff) | |
download | bluez-150bbff449c787f26b7de3e6006bdb2ea6365b08.tar.gz |
tools/btmgmt: add missing return statement
Leave function on error instead of printing (possibly) invalid flags.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/btmgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |