Message ID | 20240301133916.1268403-3-r.smirnov@omp.ru (mailing list archive) |
---|---|
State | Accepted |
Commit | 3da5589ad8087fbb5e6156dbafe658cc673defce |
Headers | show |
Series | Bluetooth: mgmt: remove useless NULL checks | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
tedd_an/CheckPatch | success | CheckPatch PASS |
tedd_an/GitLint | success | Gitlint PASS |
tedd_an/SubjectPrefix | success | Gitlint PASS |
tedd_an/IncrementalBuild | success | Incremental Build PASS |
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index cd8c4e094c55..b48d2d974263 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -8826,8 +8826,7 @@ static void add_ext_adv_params_complete(struct hci_dev *hdev, void *data, } unlock: - if (cmd) - mgmt_pending_free(cmd); + mgmt_pending_free(cmd); hci_dev_unlock(hdev); }