]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
namei: remove unused variable
authorKarel Zak <kzak@redhat.com>
Wed, 8 Jun 2011 10:18:49 +0000 (12:18 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 8 Jun 2011 10:18:49 +0000 (12:18 +0200)
namei.c: In function ‘print_namei’:
namei.c:368:16: warning: variable ‘prev’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/namei.c

index 1eb609daa6c80f4158c2fcfa3e40fd3c17c78f3d..aacaa10d11a7e6fa7f42dd86551db27cc3c29d7d 100644 (file)
@@ -365,13 +365,12 @@ follow_symlinks(struct namei *nm)
 static int
 print_namei(struct namei *nm, char *path)
 {
-       struct namei *prev = NULL;
        int i;
 
        if (path)
                printf("f: %s\n", path);
 
-       for (; nm; prev = nm, nm = nm->next) {
+       for (; nm; nm = nm->next) {
                char md[11];
 
                if (nm->noent) {