mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-21 01:06:58 +00:00
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:
parent
6b8c824fcc
commit
ecbe4883dc
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue