From: Duan Jiong Date: Fri, 1 Nov 2013 05:09:43 +0000 (+0800) Subject: vxlan: Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)) X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e50fddc8b0c0698cba446221be3654aa0a642372;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: David S. Miller --- 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;