summaryrefslogtreecommitdiffstats
path: root/fs/ext2
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2011-08-04 12:29:32 +0200
committerJan Kara <jack@suse.cz>2011-08-17 11:41:20 +0200
commit6e3d6ca0bf91bcce0453fff9b597154ff6bb9731 (patch)
treea55d1921f6afa9c0b8d48823abb6384d5b29dc61 /fs/ext2
parent1cde201da4e97f10a5dd2434cff4ceff381603d1 (diff)
downloadlinux-6e3d6ca0bf91bcce0453fff9b597154ff6bb9731.tar.gz
linux-6e3d6ca0bf91bcce0453fff9b597154ff6bb9731.tar.bz2
linux-6e3d6ca0bf91bcce0453fff9b597154ff6bb9731.zip
fs/ext2/balloc.c: delete useless initialization
Delete nontrivial initialization that is immediately overwritten by the result of an allocation function. The semantic match that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ type T; identifier i; expression e; @@ ( T i = \(0\|NULL\|ERR_PTR(...)\); | -T i = e; +T i; ) ... when != i i = \(kzalloc\|kcalloc\|kmalloc\)(...); // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext2')
-rw-r--r--fs/ext2/balloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext2/balloc.c b/fs/ext2/balloc.c
index 8f44cef1b3ef..a8cbe1bc6ad4 100644
--- a/fs/ext2/balloc.c
+++ b/fs/ext2/balloc.c
@@ -421,7 +421,7 @@ static inline int rsv_is_empty(struct ext2_reserve_window *rsv)
void ext2_init_block_alloc_info(struct inode *inode)
{
struct ext2_inode_info *ei = EXT2_I(inode);
- struct ext2_block_alloc_info *block_i = ei->i_block_alloc_info;
+ struct ext2_block_alloc_info *block_i;
struct super_block *sb = inode->i_sb;
block_i = kmalloc(sizeof(*block_i), GFP_NOFS);