projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
add2166
)
[PATCH] Remove unnecessary check in fs/reiserfs/inode.c
author
Eric Sesterhenn
<snakebyte@gmx.de>
Wed, 4 Oct 2006 09:15:30 +0000
(
02:15
-0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Wed, 4 Oct 2006 14:55:14 +0000
(07:55 -0700)
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>
fs/reiserfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/reiserfs/inode.c
b/fs/reiserfs/inode.c
index 7e5a2f5ebeb0fc19e120a5d9f29c00c37b89624f..9c69bcacad2286c1e7a926bf2a5000ae9d84da64 100644
(file)
--- a/
fs/reiserfs/inode.c
+++ b/
fs/reiserfs/inode.c
@@
-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;
}