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 <duanj.fnst@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Duan Jiong 2013-11-01 13:09:43 +08:00 committed by David S. Miller
parent 1ba3aab303
commit e50fddc8b0
1 changed files with 1 additions and 1 deletions

View File

@ -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;