]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: adjust comments 17935/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 11 Dec 2020 10:39:16 +0000 (11:39 +0100)
committerGitHub <noreply@github.com>
Fri, 11 Dec 2020 10:39:16 +0000 (11:39 +0100)
Co-authored-by: Carlo Teubner <435950+c4rlo@users.noreply.github.com>
src/network/networkd-link.c

index cb2fac0278e7c3e04de5d5037df2a23f4a81d340..b7047c06d197cb5278599dcb739f6f5ccdfe6eec 100644 (file)
@@ -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);