Skip to content

Commit 48cff96

Browse files
committed
bluetooth: shell: completely eliminate the dependency on ctx_shell
This commit removes the `ctx_shell` declaration from the Bluetooth shell, marking a milestone in eliminating this dependency. Signed-off-by: Pisit Sawangvonganan <[email protected]>
1 parent 8b579cc commit 48cff96

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

subsys/bluetooth/host/shell/bt.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
static bool no_settings_load;
4646

4747
uint8_t selected_id = BT_ID_DEFAULT;
48-
const struct shell *ctx_shell;
4948

5049
#if defined(CONFIG_BT_CONN)
5150
struct bt_conn *default_conn;
@@ -1310,8 +1309,6 @@ static int cmd_init(const struct shell *sh, size_t argc, char *argv[])
13101309
int err;
13111310
bool sync = false;
13121311

1313-
ctx_shell = sh;
1314-
13151312
for (size_t argn = 1; argn < argc; argn++) {
13161313
const char *arg = argv[argn];
13171314

subsys/bluetooth/host/shell/bt.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include <zephyr/bluetooth/bluetooth.h>
1717
#include <sys/types.h>
1818

19-
extern const struct shell *ctx_shell;
2019
extern struct bt_conn *default_conn;
2120

2221
bool passes_scan_filter(const struct bt_le_scan_recv_info *info, const struct net_buf_simple *buf);

0 commit comments

Comments
 (0)