Commit e50fddc8 authored by Duan Jiong's avatar Duan Jiong Committed by David S. Miller

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: default avatarDuan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1ba3aab3
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment