projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a45d49d
)
ipv6: Use ERR_CAST in addrconf_dst_alloc.
author
David S. Miller
<davem@davemloft.net>
Thu, 3 Mar 2011 20:10:37 +0000
(12:10 -0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 3 Mar 2011 20:10:37 +0000
(12:10 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/route.c
b/net/ipv6/route.c
index 053a92ebf2d5a942737fe9206b62f83a5659b329..59f2a58c1e321244ef1b50f39add38727d64ec8e 100644
(file)
--- a/
net/ipv6/route.c
+++ b/
net/ipv6/route.c
@@
-2022,12
+2022,7
@@
struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev,
if (IS_ERR(neigh)) {
dst_free(&rt->dst);
- /* We are casting this because that is the return
- * value type. But an errno encoded pointer is the
- * same regardless of the underlying pointer type,
- * and that's what we are returning. So this is OK.
- */
- return (struct rt6_info *) neigh;
+ return ERR_CAST(neigh);
}
rt->rt6i_nexthop = neigh;