Commit ecbe4883 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

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: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 6b8c824f
...@@ -50,7 +50,7 @@ static int nlmsg_receive(char *buf, int len, int (*cb)(struct nlmsghdr *, void * ...@@ -50,7 +50,7 @@ static int nlmsg_receive(char *buf, int len, int (*cb)(struct nlmsghdr *, void *
if (err->error == 0) if (err->error == 0)
return 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; return -1;
} }
if (cb(hdr, arg)) if (cb(hdr, arg))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment