diff options
author | Duan Jiong <duanj.fnst@cn.fujitsu.com> | 2013-11-01 13:09:43 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-11-04 20:02:33 -0500 |
commit | e50fddc8b0c0698cba446221be3654aa0a642372 (patch) | |
tree | 39625c54a3e323e807199975c07043ecec979b27 /drivers/net | |
parent | 1ba3aab3033b464f352659720824d7124c21dbf9 (diff) |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/vxlan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 24260ced86d2..78df8f39e57c 100644 --- 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; |