diff options
author | Johann Lombardi <johann.lombardi@bull.net> | 2006-06-25 05:48:33 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-25 10:01:15 -0700 |
commit | 92eeccd8badbfebe12383b6e5326b27dc707601d (patch) | |
tree | b3d96a855685ec96f4fa0ee4419b0f6efdb977ae /fs/ext3 | |
parent | 0710d36a0fd5db3176369397f0fc49db32a63507 (diff) | |
download | kernel_samsung_crespo-92eeccd8badbfebe12383b6e5326b27dc707601d.zip kernel_samsung_crespo-92eeccd8badbfebe12383b6e5326b27dc707601d.tar.gz kernel_samsung_crespo-92eeccd8badbfebe12383b6e5326b27dc707601d.tar.bz2 |
[PATCH] ext3: cleanup dead code in ext3_add_entry()
The variables nlen and rlen are defined/initialized but not used in
ext3_add_entry().
Signed-off-by: Johann Lombardi <johann.lombardi@bull.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ext3')
-rw-r--r-- | fs/ext3/namei.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/ext3/namei.c b/fs/ext3/namei.c index b8f5cd1..d9176db 100644 --- a/fs/ext3/namei.c +++ b/fs/ext3/namei.c @@ -1379,7 +1379,6 @@ static int ext3_add_entry (handle_t *handle, struct dentry *dentry, 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 *handle, struct dentry *dentry, 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); } |