netlink: Don't signify error code

The netlink layer reports negative error code so no need to
signify it.

[xemul: This is what we do for the rest of the nlk code.]

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov 2013-03-26 19:40:44 +04:00 committed by Pavel Emelyanov
parent 6b8c824fcc
commit ecbe4883dc

View file

@ -50,7 +50,7 @@ static int nlmsg_receive(char *buf, int len, int (*cb)(struct nlmsghdr *, void *
if (err->error == 0)
return 0;
pr_err("ERROR %d reported by netlink\n", -err->error);
pr_err("ERROR %d reported by netlink\n", err->error);
return -1;
}
if (cb(hdr, arg))