[Toybox] [PATCH 3/8] toys/mke2fs: Remove unused variables.

Georgi Chorbadzhiyski gf at unixsol.org
Tue Apr 24 02:20:46 PDT 2012


The following patch removes two variables that are set but unused.
---
 toys/mke2fs.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/toys/mke2fs.c b/toys/mke2fs.c
index 47f31f2..c5042da 100644
--- a/toys/mke2fs.c
+++ b/toys/mke2fs.c
@@ -441,7 +441,7 @@ void mke2fs_main(void)
 {
 	int i, temp;
 	off_t length;
-	uint32_t usedblocks, usedinodes, dtiblk, dtbblk;
+	uint32_t usedblocks, usedinodes;
 	struct dirtree *dti, *dtb;
 
 	// Handle command line arguments.
@@ -528,7 +528,7 @@ void mke2fs_main(void)
 	put_zeroes(1024);
 
 	// Loop through block groups, write out each one.
-	dtiblk = dtbblk = usedblocks = usedinodes = 0;
+	usedblocks = usedinodes = 0;
 	for (i=0; i<TT.groups; i++) {
 		struct ext2_inode *in = (struct ext2_inode *)toybuf;
 		uint32_t start, itable, used, end;
-- 
1.7.5.1



More information about the Toybox mailing list