* [PATCH] src/station.c: remove excess if clause
@ 2022-10-09 13:27 Peter Shkenev
2022-10-10 18:42 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Peter Shkenev @ 2022-10-09 13:27 UTC (permalink / raw)
To: iwd; +Cc: Peter Shkenev
No functional changes are intended.
---
src/station.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/station.c b/src/station.c
index 1ebd13ad..fc0a40bf 100644
--- 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)
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] src/station.c: remove excess if clause
2022-10-09 13:27 [PATCH] src/station.c: remove excess if clause Peter Shkenev
@ 2022-10-10 18:42 ` Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2022-10-10 18:42 UTC (permalink / raw)
To: Peter Shkenev, iwd
Hi Peter,
On 10/9/22 08:27, Peter Shkenev wrote:
> No functional changes are intended.
> ---
> src/station.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
Applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-10 18:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-09 13:27 [PATCH] src/station.c: remove excess if clause Peter Shkenev
2022-10-10 18:42 ` Denis Kenzior
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).