ipv6: ignore rtnl_unicast() return code
rtnl_unicast() return value is not of interest, we can silently ignore it, save some instructions and four byte on the stack. Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e9476e95d8
commit
ddc3731fcb
@ -1039,7 +1039,6 @@ static void ip6mr_cache_resolve(struct net *net, struct mr6_table *mrt,
|
|||||||
|
|
||||||
while((skb = __skb_dequeue(&uc->mfc_un.unres.unresolved))) {
|
while((skb = __skb_dequeue(&uc->mfc_un.unres.unresolved))) {
|
||||||
if (ipv6_hdr(skb)->version == 0) {
|
if (ipv6_hdr(skb)->version == 0) {
|
||||||
int err;
|
|
||||||
struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct ipv6hdr));
|
struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct ipv6hdr));
|
||||||
|
|
||||||
if (__ip6mr_fill_mroute(mrt, skb, c, NLMSG_DATA(nlh)) > 0) {
|
if (__ip6mr_fill_mroute(mrt, skb, c, NLMSG_DATA(nlh)) > 0) {
|
||||||
@ -1050,7 +1049,7 @@ static void ip6mr_cache_resolve(struct net *net, struct mr6_table *mrt,
|
|||||||
skb_trim(skb, nlh->nlmsg_len);
|
skb_trim(skb, nlh->nlmsg_len);
|
||||||
((struct nlmsgerr *)NLMSG_DATA(nlh))->error = -EMSGSIZE;
|
((struct nlmsgerr *)NLMSG_DATA(nlh))->error = -EMSGSIZE;
|
||||||
}
|
}
|
||||||
err = rtnl_unicast(skb, net, NETLINK_CB(skb).pid);
|
rtnl_unicast(skb, net, NETLINK_CB(skb).pid);
|
||||||
} else
|
} else
|
||||||
ip6_mr_forward(net, mrt, skb, c);
|
ip6_mr_forward(net, mrt, skb, c);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user