]> git.itanic.dy.fi Git - scan-pagemap/commitdiff
parser: Remove dead code
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 4 Jul 2010 13:30:29 +0000 (16:30 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 4 Jul 2010 13:30:29 +0000 (16:30 +0300)
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
parse.c

diff --git a/parse.c b/parse.c
index 0eecb20a81bd92720a7ec191fe480bc9878b7ec5..deb5dd2089c03619ab519587185eee4ea701bf7f 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -150,7 +150,6 @@ static int parse_pageframe(FILE *file, struct pageframe *pf_tree,
                        fprintf(stderr, "Error seeking to %lx: %s\n", start,
                                strerror(error));
                        continue;
-                       return -1;
                }
 
                for (i = 0; i < len; i++) {
@@ -161,7 +160,6 @@ static int parse_pageframe(FILE *file, struct pageframe *pf_tree,
                                        "Error reading %ld bytes, got %d: %s\n",
                                        sizeof(pf), ret, strerror(errno));
                                continue;
-                               return -1;
                        }
                        if (!pageframe)
                                pageframe = alloc_pageframe();