diff options
Diffstat (limited to 'fs/ext3/namei.c')
-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 b8f5cd1e540d..d9176dba3698 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, | |||
1379 | int dx_fallback=0; | 1379 | int dx_fallback=0; |
1380 | #endif | 1380 | #endif |
1381 | unsigned blocksize; | 1381 | unsigned blocksize; |
1382 | unsigned nlen, rlen; | ||
1383 | u32 block, blocks; | 1382 | u32 block, blocks; |
1384 | 1383 | ||
1385 | sb = dir->i_sb; | 1384 | sb = dir->i_sb; |
@@ -1417,8 +1416,7 @@ static int ext3_add_entry (handle_t *handle, struct dentry *dentry, | |||
1417 | return retval; | 1416 | return retval; |
1418 | de = (struct ext3_dir_entry_2 *) bh->b_data; | 1417 | de = (struct ext3_dir_entry_2 *) bh->b_data; |
1419 | de->inode = 0; | 1418 | de->inode = 0; |
1420 | de->rec_len = cpu_to_le16(rlen = blocksize); | 1419 | de->rec_len = cpu_to_le16(blocksize); |
1421 | nlen = 0; | ||
1422 | return add_dirent_to_buf(handle, dentry, inode, de, bh); | 1420 | return add_dirent_to_buf(handle, dentry, inode, de, bh); |
1423 | } | 1421 | } |
1424 | 1422 | ||