Commit fca43c1a authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

sockets: Drop unused variables

Otherwise I get

 | sockets.c: In function ‘dump_socket’:
 | sockets.c:467: error: ‘st.st_ino’ may be used uninitialized in this function
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 766bbf16
...@@ -458,13 +458,10 @@ err: ...@@ -458,13 +458,10 @@ err:
int dump_socket(struct fd_parms *p, int lfd, const struct cr_fdset *cr_fdset) int dump_socket(struct fd_parms *p, int lfd, const struct cr_fdset *cr_fdset)
{ {
struct socket_desc *sk; struct socket_desc *sk;
struct statfs fst;
struct stat st;
char path[64];
sk = lookup_socket(p->stat.st_ino); sk = lookup_socket(p->stat.st_ino);
if (!sk) { if (!sk) {
pr_err("Uncollected socket %ld\n", st.st_ino); pr_err("Uncollected socket %ld\n", p->stat.st_ino);
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment