diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/route.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 053a92ebf2d5..59f2a58c1e32 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -2022,12 +2022,7 @@ struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev, | |||
2022 | if (IS_ERR(neigh)) { | 2022 | if (IS_ERR(neigh)) { |
2023 | dst_free(&rt->dst); | 2023 | dst_free(&rt->dst); |
2024 | 2024 | ||
2025 | /* We are casting this because that is the return | 2025 | return ERR_CAST(neigh); |
2026 | * value type. But an errno encoded pointer is the | ||
2027 | * same regardless of the underlying pointer type, | ||
2028 | * and that's what we are returning. So this is OK. | ||
2029 | */ | ||
2030 | return (struct rt6_info *) neigh; | ||
2031 | } | 2026 | } |
2032 | rt->rt6i_nexthop = neigh; | 2027 | rt->rt6i_nexthop = neigh; |
2033 | 2028 | ||