mirror of
git://github.com/lxc/lxc
synced 2025-09-01 01:52:51 +00:00
c/r: drop duplicate hunk from macvlan case
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
This commit is contained in:
@@ -458,13 +458,6 @@ static void exec_criu(struct criu_opts *opts)
|
|||||||
goto err;
|
goto err;
|
||||||
break;
|
break;
|
||||||
case LXC_NET_MACVLAN:
|
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) {
|
if (!n->link) {
|
||||||
ERROR("no host interface for macvlan %s\n", n->name);
|
ERROR("no host interface for macvlan %s\n", n->name);
|
||||||
goto err;
|
goto err;
|
||||||
|
Reference in New Issue
Block a user