Message ID | 52733797.3010305@cn.fujitsu.com |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Duan Jiong <duanj.fnst@cn.fujitsu.com> Date: Fri, 01 Nov 2013 13:09:43 +0800 > trivial patch converting ERR_PTR(PTR_ERR()) into ERR_CAST(). > No functional changes. > > Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com> Applied, thank you. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 24260ce..78df8f3 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;
trivial patch converting ERR_PTR(PTR_ERR()) into ERR_CAST(). No functional changes. Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com> --- drivers/net/vxlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)