libnetlink: use local variable
Now that err->error is in local variable, use it consistently. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
8c50b728b2
commit
bfb3bf189f
|
|
@ -664,11 +664,11 @@ static int __rtnl_talk_iov(struct rtnl_handle *rtnl, struct iovec *iov,
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!err->error)
|
if (!error) {
|
||||||
/* check messages from kernel */
|
/* check messages from kernel */
|
||||||
nl_dump_ext_ack(h, errfn);
|
nl_dump_ext_ack(h, errfn);
|
||||||
else {
|
} else {
|
||||||
errno = -err->error;
|
errno = -error;
|
||||||
|
|
||||||
if (rtnl->proto != NETLINK_SOCK_DIAG &&
|
if (rtnl->proto != NETLINK_SOCK_DIAG &&
|
||||||
show_rtnl_err)
|
show_rtnl_err)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue