Skip to content

Commit

Permalink
Bluetooth: hci_sync: Fix smatch warning
Browse files Browse the repository at this point in the history
This fixes the following new warning:

net/bluetooth/hci_sync.c:2403 hci_pause_addr_resolution() warn: missing
error code? 'err'

Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]/
Signed-off-by: Luiz Augusto von Dentz <[email protected]>
  • Loading branch information
Vudentz committed Apr 24, 2023
1 parent d4b20f0 commit ae051b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/hci_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -2403,7 +2403,7 @@ static int hci_pause_addr_resolution(struct hci_dev *hdev)

/* Return if address resolution is disabled and RPA is not used. */
if (!err && scan_use_rpa(hdev))
return err;
return 0;

hci_resume_advertising_sync(hdev);
return err;
Expand Down

0 comments on commit ae051b0

Please sign in to comment.