+ ext3-cleanup-dead-code-in-ext3_add_entry.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     ext3: cleanup dead code in ext3_add_entry()

has been added to the -mm tree.  Its filename is

     ext3-cleanup-dead-code-in-ext3_add_entry.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: ext3: cleanup dead code in ext3_add_entry()
From: Johann Lombardi <johann.lombardi@xxxxxxxx>


The variables nlen and rlen are defined/initialized but not used in
ext3_add_entry().

Signed-off-by: Johann Lombardi <johann.lombardi@xxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 fs/ext3/namei.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff -puN fs/ext3/namei.c~ext3-cleanup-dead-code-in-ext3_add_entry fs/ext3/namei.c
--- devel/fs/ext3/namei.c~ext3-cleanup-dead-code-in-ext3_add_entry	2006-06-08 01:53:19.000000000 -0700
+++ devel-akpm/fs/ext3/namei.c	2006-06-08 01:53:19.000000000 -0700
@@ -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);
 }
 
_

Patches currently in -mm which might be from johann.lombardi@xxxxxxxx are

ext3-cleanup-dead-code-in-ext3_add_entry.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux