]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: remove dead assigment
authorKarel Zak <kzak@redhat.com>
Thu, 2 Feb 2012 13:27:48 +0000 (14:27 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 2 Feb 2012 13:27:48 +0000 (14:27 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context_mount.c
libmount/src/context_umount.c

index b3a26fcc89ec3adbf6822324691ac9082a575145..c39d8d45a94259d9a62fbe67310a683749cdaa2f 100644 (file)
@@ -385,7 +385,6 @@ static int exec_helper(struct libmnt_context *cxt)
                }
                args[i] = NULL;                         /* 12 */
 #ifdef CONFIG_LIBMOUNT_DEBUG
-               i = 0;
                for (i = 0; args[i]; i++)
                        DBG(CXT, mnt_debug_h(cxt, "argv[%d] = \"%s\"",
                                                        i, args[i]));
index 1be29f9ea53fd1e9456160089806a769e3341bac..45c7128e6545c638495b1b4ed0332a00b4f824ee 100644 (file)
@@ -386,7 +386,6 @@ static int exec_helper(struct libmnt_context *cxt)
 
                args[i] = NULL;                                 /* 10 */
 #ifdef CONFIG_LIBMOUNT_DEBUG
-               i = 0;
                for (i = 0; args[i]; i++)
                        DBG(CXT, mnt_debug_h(cxt, "argv[%d] = \"%s\"",
                                                        i, args[i]));