summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-10-17 12:21:49 +0200
committerThomas Haller <thaller@redhat.com>2018-10-17 12:22:53 +0200
commit5e1db692a64a1b4c5f9786e0c47eb5308d3a7bb9 (patch)
treee294cfd19b4a7aa5cd214e347b4632ba996c3d06
parent292efba9d7c6986b533473a155c767deddd81a8b (diff)
downloadNetworkManager-5e1db692a64a1b4c5f9786e0c47eb5308d3a7bb9.tar.gz
core/trivial: add code comment for nm_manager_get_best_device_for_connection()
-rw-r--r--src/nm-manager.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nm-manager.c b/src/nm-manager.c
index 6f7b456c77..1e0a0c44cc 100644
--- a/src/nm-manager.c
+++ b/src/nm-manager.c
@@ -3501,7 +3501,11 @@ found_better:
if ( prio <= best.prio
&& best.device) {
/* we already have a matching device with a better priority. This candidate
- * cannot be better. Skip the check. */
+ * cannot be better. Skip the check.
+ *
+ * Also note, that below we collect the best error message @local_best.
+ * Since we already have best.device, the error message does not matter
+ * either, and we can skip nm_device_check_connection_available() altogether. */
continue;
}