Bluetooth: Controller: Remove redundant parameter passing

Remove redundant parameter passing as dup_count is global
variable.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2021-12-03 09:01:38 +05:30 committed by Carles Cufí
commit d6a81f120d

View file

@ -150,7 +150,7 @@ static uint32_t dup_curr;
#if defined(CONFIG_BT_CTLR_SYNC_PERIODIC_ADI_SUPPORT) #if defined(CONFIG_BT_CTLR_SYNC_PERIODIC_ADI_SUPPORT)
/* Helper function to reset non-periodic advertising entries in filter table */ /* Helper function to reset non-periodic advertising entries in filter table */
static void dup_ext_adv_reset(int count); static void dup_ext_adv_reset(void);
/* Flag for advertising reports be filtered for duplicates. */ /* Flag for advertising reports be filtered for duplicates. */
static bool dup_scan; static bool dup_scan;
#else /* !CONFIG_BT_CTLR_SYNC_PERIODIC_ADI_SUPPORT */ #else /* !CONFIG_BT_CTLR_SYNC_PERIODIC_ADI_SUPPORT */
@ -1688,7 +1688,7 @@ static void le_set_scan_enable(struct net_buf *buf, struct net_buf **evt)
dup_curr = 0U; dup_curr = 0U;
} else if (!dup_scan) { } else if (!dup_scan) {
dup_scan = true; dup_scan = true;
dup_ext_adv_reset(dup_count); dup_ext_adv_reset();
#endif /* CONFIG_BT_CTLR_SYNC_PERIODIC_ADI_SUPPORT */ #endif /* CONFIG_BT_CTLR_SYNC_PERIODIC_ADI_SUPPORT */
} else { } else {
@ -3477,7 +3477,7 @@ static void le_set_ext_scan_enable(struct net_buf *buf, struct net_buf **evt)
dup_curr = 0U; dup_curr = 0U;
} else if (!dup_scan) { } else if (!dup_scan) {
dup_scan = true; dup_scan = true;
dup_ext_adv_reset(dup_count); dup_ext_adv_reset();
#endif /* CONFIG_BT_CTLR_SYNC_PERIODIC_ADI_SUPPORT */ #endif /* CONFIG_BT_CTLR_SYNC_PERIODIC_ADI_SUPPORT */
} else { } else {
@ -4981,11 +4981,11 @@ static void dup_ext_adv_mode_reset(struct dup_ext_adv_mode *dup_adv_mode)
} }
#if defined(CONFIG_BT_CTLR_SYNC_PERIODIC_ADI_SUPPORT) #if defined(CONFIG_BT_CTLR_SYNC_PERIODIC_ADI_SUPPORT)
static void dup_ext_adv_reset(int count) static void dup_ext_adv_reset(void)
{ {
int i; int i;
for (i = 0; i < count; i++) { for (i = 0; i < dup_count; i++) {
struct dup_entry *dup; struct dup_entry *dup;
dup = &dup_filter[i]; dup = &dup_filter[i];