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: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov 2012-03-31 02:46:00 +04:00 committed by Pavel Emelyanov
parent 766bbf1631
commit fca43c1abe

View file

@ -458,13 +458,10 @@ err:
int dump_socket(struct fd_parms *p, int lfd, const struct cr_fdset *cr_fdset)
{
struct socket_desc *sk;
struct statfs fst;
struct stat st;
char path[64];
sk = lookup_socket(p->stat.st_ino);
if (!sk) {
pr_err("Uncollected socket %ld\n", st.st_ino);
pr_err("Uncollected socket %ld\n", p->stat.st_ino);
return -1;
}