From: Laurent Vivier Date: Tue, 14 Jun 2016 13:07:09 +0000 (+0200) Subject: linux-user: add missing return in netlink switch statement X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=84f34b00c8cccfcefbadc45f68036dea957d2153;p=qemu.git linux-user: add missing return in netlink switch statement Reported-by: Peter Maydell Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio Reviewed-by: Peter Maydell --- diff --git a/linux-user/syscall.c b/linux-user/syscall.c index b8a0738e5b..33409c01ba 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -1692,6 +1692,7 @@ static abi_long target_to_host_for_each_nlmsg(struct nlmsghdr *nlh, struct nlmsgerr *e = NLMSG_DATA(nlh); e->error = tswap32(e->error); tswap_nlmsghdr(&e->msg); + return 0; } default: ret = target_to_host_nlmsg(nlh);