Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 585b7747 authored by Eric Sesterhenn's avatar Eric Sesterhenn Committed by Linus Torvalds
Browse files

[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: default avatarEric Sesterhenn <snakebyte@gmx.de>
Cc: Jeff Mahoney <jeffm@suse.com>
Cc: <reiserfs-dev@namesys.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent add21660
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1780,7 +1780,7 @@ int reiserfs_new_inode(struct reiserfs_transaction_handle *th,
		err = -EDQUOT;
		goto out_end_trans;
	}
	if (!dir || !dir->i_nlink) {
	if (!dir->i_nlink) {
		err = -EPERM;
		goto out_bad_inode;
	}