vxlan: Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
Subsystems (2)
PATCH 1/1 vxlan: Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
trivial patch converting ERR_PTR(PTR_ERR()) into ERR_CAST(). No functional changes.
Signed-off-by Duan Jiong <[email protected]>
--- drivers/net/vxlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/vxlan.c +1 -1
@@ -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;
Signature · 1 line
1.8.3.1
From: Duan Jiong <[email protected]>
Date: Fri, 01 Nov 2013 13:09:43 +0800
Quoted 4 lines
trivial patch converting ERR_PTR(PTR_ERR()) into
ERR_CAST(). No functional changes.Signed-off-by Duan Jiong <[email protected]>
Applied, thank you.