eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 6b81b6e46aa299d28f5a9914da9e9f0b7a87f86e
parent f9b7e32c2d6d3b6f13f73e2e127b11686daa7546
Author: Peter Shkenev <mustela@erminea.space>
Date:   Sun,  9 Oct 2022 16:27:44 +0300

station: remove excess if clause

No functional changes are intended.

Diffstat:
Msrc/station.c | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/station.c b/src/station.c @@ -183,12 +183,9 @@ struct network *station_get_connected_network(struct station *station) bool station_is_busy(struct station *station) { - if (station->state != STATION_STATE_DISCONNECTED && + return station->state != STATION_STATE_DISCONNECTED && station->state != STATION_STATE_AUTOCONNECT_FULL && - station->state != STATION_STATE_AUTOCONNECT_QUICK) - return true; - - return false; + station->state != STATION_STATE_AUTOCONNECT_QUICK; } static bool station_is_autoconnecting(struct station *station)