projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ba3aab
)
vxlan: Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
author
Duan Jiong
<duanj.fnst@cn.fujitsu.com>
Fri, 1 Nov 2013 05:09:43 +0000
(13:09 +0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 5 Nov 2013 01:02:33 +0000
(20:02 -0500)
trivial patch converting ERR_PTR(PTR_ERR()) into ERR_CAST().
No functional changes.
Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
patch
|
blob
|
history
diff --git
a/drivers/net/vxlan.c
b/drivers/net/vxlan.c
index
24260ce
..
78df8f3
100644
(file)
--- a/
drivers/net/vxlan.c
+++ b/
drivers/net/vxlan.c
@@
-2285,7
+2285,7
@@
static struct vxlan_sock *vxlan_socket_create(struct net *net, __be16 port,
sock = create_v4_sock(net, port);
if (IS_ERR(sock)) {
kfree(vs);
- return ERR_
PTR(PTR_ERR(sock)
);
+ return ERR_
CAST(sock
);
}
vs->sock = sock;