projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50c3a48
)
ipv6: Use IS_ERR_OR_NULL().
author
YOSHIFUJI Hideaki / 吉藤英明
<
[email protected]
>
Tue, 22 Jan 2013 06:32:54 +0000
(06:32 +0000)
committer
David S. Miller
<
[email protected]
>
Tue, 22 Jan 2013 19:28:28 +0000
(14:28 -0500)
Signed-off-by: YOSHIFUJI Hideaki <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv6/addrconf.c
patch
|
blob
|
history
diff --git
a/net/ipv6/addrconf.c
b/net/ipv6/addrconf.c
index 420e563263840442a150c13098148921559c3f2d..80d59802d964abc9b7a2f6d2bdefa86161bd1249 100644
(file)
--- a/
net/ipv6/addrconf.c
+++ b/
net/ipv6/addrconf.c
@@
-1051,7
+1051,7
@@
retry:
ipv6_add_addr(idev, &addr, tmp_plen,
ipv6_addr_type(&addr)&IPV6_ADDR_SCOPE_MASK,
addr_flags) : NULL;
- if (
!ift || IS_ERR
(ift)) {
+ if (
IS_ERR_OR_NULL
(ift)) {
in6_ifa_put(ifp);
in6_dev_put(idev);
pr_info("%s: retry temporary address regeneration\n", __func__);
@@
-2079,7
+2079,7
@@
ok:
addr_type&IPV6_ADDR_SCOPE_MASK,
addr_flags);
- if (
!ifp || IS_ERR
(ifp)) {
+ if (
IS_ERR_OR_NULL
(ifp)) {
in6_dev_put(in6_dev);
return;
}