Commit 4bcb2fc4 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] (4/5) ext2_free_blocks() cleanup

in ext2_free_blocks() inode->i_sb can't be NULL; dead code removed.
parent a3c6da09
......@@ -198,16 +198,11 @@ void ext2_free_blocks (struct inode * inode, unsigned long block,
unsigned long bit;
unsigned long i;
unsigned long overflow;
struct super_block * sb;
struct super_block * sb = inode->i_sb;
struct ext2_group_desc * gdp;
struct ext2_super_block * es;
unsigned freed = 0, group_freed;
sb = inode->i_sb;
if (!sb) {
printk ("ext2_free_blocks: nonexistent device");
return;
}
lock_super (sb);
es = sb->u.ext2_sb.s_es;
if (block < le32_to_cpu(es->s_first_data_block) ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment