Skip to content

Commit

Permalink
vxlan: Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Duan Jiong authored and David S. Miller committed Nov 5, 2013
1 parent 1ba3aab commit e50fddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/vxlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e50fddc

Please sign in to comment.