[gnome-remote-desktop] rdp/nw-auto: Remove superfluous if condition
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] rdp/nw-auto: Remove superfluous if condition
- Date: Thu, 19 May 2022 16:25:44 +0000 (UTC)
commit d15eb8a62f64174350746de74a7f3089733e6500
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Mon May 16 19:26:57 2022 +0200
rdp/nw-auto: Remove superfluous if condition
src/grd-rdp-network-autodetection.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/grd-rdp-network-autodetection.c b/src/grd-rdp-network-autodetection.c
index 15c06cfc..025e9296 100644
--- a/src/grd-rdp-network-autodetection.c
+++ b/src/grd-rdp-network-autodetection.c
@@ -207,8 +207,7 @@ grd_rdp_network_autodetection_ensure_rtt_consumer (GrdRdpNetworkAutodetection
g_assert (rtt_consumer != GRD_RDP_NW_AUTODETECT_RTT_CONSUMER_NONE);
g_mutex_lock (&network_autodetection->consumer_mutex);
- if (!has_rtt_consumer (network_autodetection, rtt_consumer))
- network_autodetection->rtt_consumers |= rtt_consumer;
+ network_autodetection->rtt_consumers |= rtt_consumer;
update_ping_source (network_autodetection);
g_mutex_unlock (&network_autodetection->consumer_mutex);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]