vxlan: Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>
Fri, 1 Nov 2013 05:09:43 +0000 (13:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Nov 2013 01:02:33 +0000 (20:02 -0500)
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>
drivers/net/vxlan.c

index 24260ced86d2e6f84f95ba9240a5617c070c63e4..78df8f39e57cec7e9280811005b4a417b45ff35d 100644 (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;