Skip to content

Commit

Permalink
[PATCH] ext3: cleanup dead code in ext3_add_entry()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johann Lombardi authored and Linus Torvalds committed Jun 25, 2006
1 parent 0710d36 commit 92eeccd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fs/ext3/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 92eeccd

Please sign in to comment.