Skip to content

Commit 844712f

Browse files
Bluetooth: Controller: Remove redundant local variable
'err' is already defined in parent scope, we can use. Just need to set it back to 0 before returning from function. Signed-off-by: Andrzej Kaczmarek <[email protected]>
1 parent 452a259 commit 844712f

File tree

1 file changed

+2
-2
lines changed
  • subsys/bluetooth/controller/ll_sw/nordic/lll

1 file changed

+2
-2
lines changed

subsys/bluetooth/controller/ll_sw/nordic/lll/lll_sync.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,13 +516,13 @@ static int isr_rx(struct lll_sync *lll, uint8_t node_type, uint8_t *trx_cnt,
516516
}
517517
#if defined(CONFIG_BT_CTLR_DF_SAMPLE_CTE_FOR_PDU_WITH_BAD_CRC)
518518
else {
519-
int err;
520-
521519
err = create_iq_report(lll, rssi_ready,
522520
BT_HCI_LE_CTE_CRC_ERR_CTE_BASED_TIME);
523521
if (!err) {
524522
ull_rx_sched();
525523
}
524+
525+
err = 0;
526526
}
527527
#endif /* CONFIG_BT_CTLR_DF_SAMPLE_CTE_FOR_PDU_WITH_BAD_CRC */
528528

0 commit comments

Comments
 (0)