mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-21 12:20:43 +01:00
device: Remove pointless check
This was introduced by commit f468fceb0264791d6acc297136eb26080aca4216. However, after commit 2d78f51fac66b9beff03a56f12e5fb8456625f07, the connect_cb is called from inside netdev_disconnect. This in turn causes the dbus-reply to be sent out if needed. So by the time we get to the code in question, connect_pending is always NULL.
This commit is contained in:
parent
c4eab62ba4
commit
f4201d06c2
@ -805,11 +805,6 @@ int device_disconnect(struct device *device)
|
||||
if (netdev_disconnect(device->netdev, device_disconnect_cb, device) < 0)
|
||||
return -EIO;
|
||||
|
||||
if (device->state == DEVICE_STATE_CONNECTING)
|
||||
if (device->connect_pending)
|
||||
dbus_pending_reply(&device->connect_pending,
|
||||
dbus_error_aborted(device->connect_pending));
|
||||
|
||||
/*
|
||||
* If the disconnect somehow fails we won't know if we're still
|
||||
* connected so we may as well indicate now that we're no longer
|
||||
|
Loading…
x
Reference in New Issue
Block a user