提交 065d7e39 编写于 作者: G Geert Uytterhoeven 提交者: David S. Miller

tipc: Let tipc_release() return 0

net/tipc/socket.c: In function ‘tipc_release’:
net/tipc/socket.c:352: warning: ‘res’ is used uninitialized in this function

Introduced by commit 24be34b5 ("tipc:
eliminate upcall function pointers between port and socket"), which
removed the sole initializer of "res".

Just return 0 to fix it.
Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 39d7f320
...@@ -301,7 +301,6 @@ static int tipc_release(struct socket *sock) ...@@ -301,7 +301,6 @@ static int tipc_release(struct socket *sock)
struct tipc_sock *tsk; struct tipc_sock *tsk;
struct tipc_port *port; struct tipc_port *port;
struct sk_buff *buf; struct sk_buff *buf;
int res;
/* /*
* Exit if socket isn't fully initialized (occurs when a failed accept() * Exit if socket isn't fully initialized (occurs when a failed accept()
...@@ -349,7 +348,7 @@ static int tipc_release(struct socket *sock) ...@@ -349,7 +348,7 @@ static int tipc_release(struct socket *sock)
sock_put(sk); sock_put(sk);
sock->sk = NULL; sock->sk = NULL;
return res; return 0;
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册