Skip to content

Commit

Permalink
[PATCH] Remove unnecessary check in fs/reiserfs/inode.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Sesterhenn authored and Linus Torvalds committed Oct 4, 2006
1 parent add2166 commit 585b774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/reiserfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 585b774

Please sign in to comment.