Message ID | 20240301133916.1268403-2-r.smirnov@omp.ru |
---|---|
State | Accepted |
Commit | 9f67e5ba6f6c2b1c7b57c9a507f77c6fe5487ee5 |
Headers | show |
Series | Bluetooth: mgmt: remove useless NULL checks | expand |
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index bb72ff6eb22f..cd8c4e094c55 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -1702,8 +1702,7 @@ static void mgmt_set_connectable_complete(struct hci_dev *hdev, void *data, new_settings(hdev, cmd->sk); done: - if (cmd) - mgmt_pending_remove(cmd); + mgmt_pending_remove(cmd); hci_dev_unlock(hdev); }