Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(nimble): Handled error return value while removing RPA list from … #1605

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion nimble/host/src/ble_gap.c
Original file line number Diff line number Diff line change
Expand Up @@ -6041,6 +6041,7 @@ int
ble_gap_unpair(const ble_addr_t *peer_addr)
{
#if NIMBLE_BLE_SM
int rc;
struct ble_hs_conn *conn;

if (!ble_hs_is_enabled()) {
Expand All @@ -6060,8 +6061,11 @@ ble_gap_unpair(const ble_addr_t *peer_addr)

ble_hs_unlock();

ble_hs_pvcy_remove_entry(peer_addr->type,
rc = ble_hs_pvcy_remove_entry(peer_addr->type,
peer_addr->val);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation needs fixing

if (rc != 0) {
return rc;
}

return ble_store_util_delete_peer(peer_addr);
#else
Expand Down
Loading