summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-12-11 11:39:16 +0100
committerGitHub <noreply@github.com>2020-12-11 11:39:16 +0100
commitf8dd40779a9aa83dc489863415739dfaedd1b004 (patch)
treec3febd5984f6080e44276804c93f3fe69529f3d7
parent8bceafa7771800c8bdfc1b74ef39824103f5c129 (diff)
downloadsystemd-f8dd40779a9aa83dc489863415739dfaedd1b004.tar.gz
network: adjust comments
Co-authored-by: Carlo Teubner <435950+c4rlo@users.noreply.github.com>
-rw-r--r--src/network/networkd-link.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index cb2fac0278..b7047c06d1 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -2223,10 +2223,10 @@ int link_reconfigure(Link *link, bool force) {
int r;
/* When link in pending or initialized state, then link_configure() will be called. To prevent
- * the function be called multiple times simultaneously, refuse to reconfigure the interface in
- * these case. */
+ * the function from being called multiple times simultaneously, refuse to reconfigure the
+ * interface in these cases. */
if (IN_SET(link->state, LINK_STATE_PENDING, LINK_STATE_INITIALIZED, LINK_STATE_LINGER))
- return 0; /* o means no-op. */
+ return 0; /* 0 means no-op. */
r = sd_rtnl_message_new_link(link->manager->rtnl, &req, RTM_GETLINK,
link->ifindex);