net: Fix links collection retcode

There's a

   if (bad_thing) {
	   ret = -1;
	   break;
   }

code above this hunk, whose intention is to propagate -1 back to
caller. This propagation is obviously broken.

Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Pavel Emelyanov 2017-06-16 18:19:19 +03:00 committed by Andrei Vagin
parent 7d5ac8338d
commit 181ea542e3

View file

@ -1560,7 +1560,7 @@ static int read_links(struct ns_id *ns)
}
close_image(img);
return 0;
return ret;
}
static int restore_link(int nlsk, struct ns_id *ns, struct net_link *link)