Skip to content

Commit 80426dd

Browse files
erbr-otfabiobaltieri
authored andcommitted
Bluetooth: controller: removed unused code
LLCP data struct member fex.sent was set but not used so remove Signed-off-by: Erik Brockhoff <[email protected]>
1 parent 835352c commit 80426dd

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

subsys/bluetooth/controller/ll_sw/ull_conn_types.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,6 @@ struct llcp_struct {
412412
* see BT Core spec 5.2 Vol 6, Part B, sec. 5.1.4
413413
*/
414414
struct {
415-
uint8_t sent;
416415
uint8_t valid;
417416
/*
418417
* Stores features supported by peer device. The content of the member may be

subsys/bluetooth/controller/ll_sw/ull_llcp_common.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -600,9 +600,7 @@ static void lp_comm_send_req(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t
600600
break;
601601
#endif /* CONFIG_BT_CTLR_LE_PING */
602602
case PROC_FEATURE_EXCHANGE:
603-
if (lp_comm_tx_proxy(conn, ctx, false)) {
604-
conn->llcp.fex.sent = 1;
605-
}
603+
lp_comm_tx_proxy(conn, ctx, false);
606604
break;
607605
#if defined(CONFIG_BT_CTLR_MIN_USED_CHAN) && defined(CONFIG_BT_PERIPHERAL)
608606
case PROC_MIN_USED_CHANS:
@@ -1192,9 +1190,7 @@ static void rp_comm_send_rsp(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t
11921190
#endif /* CONFIG_BT_CTLR_LE_PING */
11931191
case PROC_FEATURE_EXCHANGE:
11941192
/* Always respond on remote feature exchange */
1195-
if (rp_comm_tx_proxy(conn, ctx, true)) {
1196-
conn->llcp.fex.sent = 1;
1197-
}
1193+
rp_comm_tx_proxy(conn, ctx, true);
11981194
break;
11991195
case PROC_VERSION_EXCHANGE:
12001196
/* The Link Layer shall only queue for transmission a maximum of one

0 commit comments

Comments
 (0)