[PATCH] ext3: cleanup dead code in ext3_add_entry()

Johann Lombardi <[email protected]>
Newsgroups gmane.comp.file-systems.ext2.devel
Message-ID <20060608083725.GD2641@chiva>
The variables nlen and rlen are defined/initialized but not used in 
ext3_add_entry().


Signed-off-by: Johann Lombardi <[email protected]>
---

Index: linux-2.6.16.16/fs/ext3/namei.c
===================================================================
--- linux-2.6.16.16.orig/fs/ext3/namei.c	2006-06-05 22:42:05.000000000 +0200
+++ linux-2.6.16.16/fs/ext3/namei.c	2006-06-05 22:42:49.000000000 +0200
@@ -1379,7 +1379,6 @@ static int ext3_add_entry (handle_t *han
 	int	dx_fallback=0;
 #endif
 	unsigned blocksize;
-	unsigned nlen, rlen;
 	u32 block, blocks;
 
 	sb = dir->i_sb;
@@ -1417,8 +1416,7 @@ static int ext3_add_entry (handle_t *han
 		return retval;
 	de = (struct ext3_dir_entry_2 *) bh->b_data;
 	de->inode = 0;
-	de->rec_len = cpu_to_le16(rlen = blocksize);
-	nlen = 0;
+	de->rec_len = cpu_to_le16(blocksize);
 	return add_dirent_to_buf(handle, dentry, inode, de, bh);
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.