diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-02-28 02:50:58 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-04-24 07:46:25 +0300 |
commit | ae051b044ebf5938940741c25a8989e07a5d7e88 (patch) | |
tree | e3b361d4dd97315ab44a7f3179190bd7b5481d5d /net/bluetooth/hci_sync.c | |
parent | d4b20f0b8491bfb3238ebf7df4b13243189620d2 (diff) | |
download | linux-ae051b044ebf5938940741c25a8989e07a5d7e88.tar.xz |
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/hci_sync.c')
-rw-r--r-- | net/bluetooth/hci_sync.c | 2 |
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; |