From fca43c1abea65e2ccfa24f8ad10240aa2d4f7fc9 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sat, 31 Mar 2012 02:46:00 +0400 Subject: [PATCH] sockets: Drop unused variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Pavel Emelyanov --- sockets.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sockets.c b/sockets.c index 3d9d46d29..5776c47e0 100644 --- a/sockets.c +++ b/sockets.c @@ -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; }