diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-10-04 05:15:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-04 10:55:14 -0400 |
commit | 585b7747d63e3a5f65628d21c1745edd926d7897 (patch) | |
tree | a00ec26498cb7c505bf6cf70da7957abd837658e | |
parent | add216608a63713b8a2c4545698d5ae02e27ac3b (diff) |
[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>
-rw-r--r-- | fs/reiserfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c index 7e5a2f5ebeb0..9c69bcacad22 100644 --- a/fs/reiserfs/inode.c +++ b/fs/reiserfs/inode.c | |||
@@ -1780,7 +1780,7 @@ int reiserfs_new_inode(struct reiserfs_transaction_handle *th, | |||
1780 | err = -EDQUOT; | 1780 | err = -EDQUOT; |
1781 | goto out_end_trans; | 1781 | goto out_end_trans; |
1782 | } | 1782 | } |
1783 | if (!dir || !dir->i_nlink) { | 1783 | if (!dir->i_nlink) { |
1784 | err = -EPERM; | 1784 | err = -EPERM; |
1785 | goto out_bad_inode; | 1785 | goto out_bad_inode; |
1786 | } | 1786 | } |