diff mbox series

[linux-next] Bluetooth: remove redundant variable err

Message ID 20220831155513.305604-1-cui.jinpeng2@zte.com.cn
State New
Headers show
Series [linux-next] Bluetooth: remove redundant variable err | expand

Commit Message

Lv Ruyi Aug. 31, 2022, 3:55 p.m. UTC
From: Jinpeng Cui <cui.jinpeng2@zte.com.cn>

Return value directly from hci_req_run_skb() instead of
getting value from redundant variable err.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Jinpeng Cui <cui.jinpeng2@zte.com.cn>
---
 net/bluetooth/msft.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

bluez.test.bot@gmail.com Aug. 31, 2022, 5:24 p.m. UTC | #1
This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=672880

---Test result---

Test Summary:
CheckPatch                    PASS      0.82 seconds
GitLint                       PASS      0.45 seconds
SubjectPrefix                 PASS      0.29 seconds
BuildKernel                   PASS      42.65 seconds
BuildKernel32                 PASS      37.28 seconds
Incremental Build with patchesPASS      54.81 seconds
TestRunner: Setup             PASS      615.01 seconds
TestRunner: l2cap-tester      PASS      19.00 seconds
TestRunner: iso-tester        PASS      18.95 seconds
TestRunner: bnep-tester       PASS      7.38 seconds
TestRunner: mgmt-tester       PASS      118.09 seconds
TestRunner: rfcomm-tester     PASS      11.07 seconds
TestRunner: sco-tester        PASS      10.92 seconds
TestRunner: smp-tester        PASS      10.85 seconds
TestRunner: userchan-tester   PASS      7.64 seconds



---
Regards,
Linux Bluetooth
diff mbox series

Patch

diff --git a/net/bluetooth/msft.c b/net/bluetooth/msft.c
index bee6a4c656be..53872f9600f4 100644
--- a/net/bluetooth/msft.c
+++ b/net/bluetooth/msft.c
@@ -819,16 +819,14 @@  int msft_set_filter_enable(struct hci_dev *hdev, bool enable)
 {
 	struct hci_request req;
 	struct msft_data *msft = hdev->msft_data;
-	int err;
 
 	if (!msft)
 		return -EOPNOTSUPP;
 
 	hci_req_init(&req, hdev);
 	msft_req_add_set_filter_enable(&req, enable);
-	err = hci_req_run_skb(&req, msft_le_set_advertisement_filter_enable_cb);
 
-	return err;
+	return hci_req_run_skb(&req, msft_le_set_advertisement_filter_enable_cb);
 }
 
 bool msft_curve_validity(struct hci_dev *hdev)