mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-31 06:10:03 +00:00
nimble/ll: Fix return value
This commit is contained in:
@@ -1685,7 +1685,7 @@ ble_ll_sched_aux_scan(struct ble_mbuf_hdr *ble_hdr,
|
||||
struct ble_ll_scan_sm *scansm,
|
||||
struct ble_ll_aux_data *aux_scan)
|
||||
{
|
||||
int rc;
|
||||
int rc = 1;
|
||||
os_sr_t sr;
|
||||
uint32_t off_ticks;
|
||||
uint32_t off_rem_usecs;
|
||||
@@ -1749,7 +1749,6 @@ ble_ll_sched_aux_scan(struct ble_mbuf_hdr *ble_hdr,
|
||||
* anything. We can make it smarter later on
|
||||
*/
|
||||
if (ble_ll_sched_is_overlap(sch, entry)) {
|
||||
rc = -1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user