Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Viro <viro@math.psu.edu>2002-02-08 19:17:05 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2002-02-08 19:17:05 -0800
commit4bcb2fc4633decb03836f828c402d5d94b18fc96 (patch)
tree97e506988ffbebb0603809b62328b7e93ce5c603
parenta3c6da097adeccbc92a4f3eece714235dd4c9479 (diff)
[PATCH] (4/5) ext2_free_blocks() cleanup
in ext2_free_blocks() inode->i_sb can't be NULL; dead code removed.
-rw-r--r--fs/ext2/balloc.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/ext2/balloc.c b/fs/ext2/balloc.c
index d6391d833fb7..45c014e5017e 100644
--- a/fs/ext2/balloc.c
+++ b/fs/ext2/balloc.c
@@ -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) ||