[PATCH] Remove unnecessary check in fs/reiserfs/inode.c

Since all callers dereference dir, we dont need this check.  Coverity id
#337.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Cc: Jeff Mahoney <jeffm@suse.com>
Cc: <reiserfs-dev@namesys.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Eric Sesterhenn 2006-10-04 02:15:30 -07:00 committed by Linus Torvalds
parent add216608a
commit 585b7747d6

View file

@ -1780,7 +1780,7 @@ int reiserfs_new_inode(struct reiserfs_transaction_handle *th,
err = -EDQUOT; err = -EDQUOT;
goto out_end_trans; goto out_end_trans;
} }
if (!dir || !dir->i_nlink) { if (!dir->i_nlink) {
err = -EPERM; err = -EPERM;
goto out_bad_inode; goto out_bad_inode;
} }