]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
c/r: drop duplicate hunk from macvlan case
authorTycho Andersen <tycho.andersen@canonical.com>
Mon, 24 Oct 2016 22:55:27 +0000 (16:55 -0600)
committerTycho Andersen <tycho.andersen@canonical.com>
Mon, 24 Oct 2016 22:55:27 +0000 (16:55 -0600)
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
src/lxc/criu.c

index c998fe42c769ebf35e1dfb72b061483130bddbaf..16d439a89a3bfee44a88998ac183a4bd9e270ce7 100644 (file)
@@ -458,13 +458,6 @@ static void exec_criu(struct criu_opts *opts)
                                        goto err;
                                break;
                        case LXC_NET_MACVLAN:
-                               if (n->name) {
-                                       if (strlen(n->name) >= sizeof(eth))
-                                               goto err;
-                                       strncpy(eth, n->name, sizeof(eth));
-                               } else
-                                       sprintf(eth, "eth%d", netnr);
-
                                if (!n->link) {
                                        ERROR("no host interface for macvlan %s\n", n->name);
                                        goto err;