diff options
-rw-r--r-- | miscutils/readahead.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/miscutils/readahead.c b/miscutils/readahead.c index 9f1bb47be..8221bb4be 100644 --- a/miscutils/readahead.c +++ b/miscutils/readahead.c | |||
@@ -15,7 +15,6 @@ | |||
15 | int readahead_main(int argc, char **argv) | 15 | int readahead_main(int argc, char **argv) |
16 | { | 16 | { |
17 | FILE *f; | 17 | FILE *f; |
18 | struct stat stat_buf; | ||
19 | int retval = EXIT_SUCCESS; | 18 | int retval = EXIT_SUCCESS; |
20 | 19 | ||
21 | if (argc == 1) bb_show_usage(); | 20 | if (argc == 1) bb_show_usage(); |
@@ -24,7 +23,6 @@ int readahead_main(int argc, char **argv) | |||
24 | if ((f = bb_wfopen(*argv, "r")) != NULL) { | 23 | if ((f = bb_wfopen(*argv, "r")) != NULL) { |
25 | int r, fd=fileno(f); | 24 | int r, fd=fileno(f); |
26 | 25 | ||
27 | xstat(*argv, &stat_buf); | ||
28 | r = readahead(fd, 0, fdlength(fd)); | 26 | r = readahead(fd, 0, fdlength(fd)); |
29 | fclose(f); | 27 | fclose(f); |
30 | if (r >= 0) continue; | 28 | if (r >= 0) continue; |