]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: non-functional changes
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 24 Aug 2017 11:26:10 +0000 (13:26 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 29 Aug 2017 18:04:03 +0000 (14:04 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c

index 0d704b9d71c35fc41350ff694359bb5fa23a82e6..af32d7abc1c6f2e752546d56f8a8c5115fa4a039 100644 (file)
@@ -3104,7 +3104,7 @@ bool lxc_delete_network(struct lxc_handler *handler)
                }
 
                /* Recent kernel remove the virtual interfaces when the network
-                * namespace is destroyed but in case we did not moved the
+                * namespace is destroyed but in case we did not move the
                 * interface to the network namespace, we have to destroy it
                 */
                if (netdev->ifindex != 0) {
@@ -3136,11 +3136,10 @@ bool lxc_delete_network(struct lxc_handler *handler)
                        if (netdev->priv.veth_attr.pair) {
                                hostveth = netdev->priv.veth_attr.pair;
                                ret = lxc_netdev_delete_by_name(hostveth);
-                               if (ret < 0) {
+                               if (ret < 0)
                                        WARN("Failed to remove interface \"%s\" from host: %s.", hostveth, strerror(-ret));
-                               } else {
+                               else
                                        INFO("Removed interface \"%s\" from host.", hostveth);
-                               }
                        } else if (strlen(netdev->priv.veth_attr.veth1) > 0) {
                                hostveth = netdev->priv.veth_attr.veth1;
                                ret = lxc_netdev_delete_by_name(hostveth);