summaryrefslogtreecommitdiff
path: root/net/bluetooth
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-02-27 15:50:58 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-04-23 21:46:25 -0700
commitae051b044ebf5938940741c25a8989e07a5d7e88 (patch)
treee3b361d4dd97315ab44a7f3179190bd7b5481d5d /net/bluetooth
parentd4b20f0b8491bfb3238ebf7df4b13243189620d2 (diff)
downloadlinux-next-ae051b044ebf5938940741c25a8989e07a5d7e88.tar.gz
Bluetooth: hci_sync: Fix smatch warning
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 <lkp@intel.com> Reported-by: Dan Carpenter <error27@gmail.com> Link: https://lore.kernel.org/r/202302251952.xryXOegd-lkp@intel.com/ Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/hci_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c
index 632be1267288..b64af017ab99 100644
--- a/net/bluetooth/hci_sync.c
+++ b/net/bluetooth/hci_sync.c
@@ -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;