projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbad2bd
)
ocfs2: get rid of impossible checks
author
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 4 Nov 2013 00:49:19 +0000
(19:49 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 9 Nov 2013 05:16:32 +0000
(
00:16
-0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ocfs2/inode.c
patch
|
blob
|
history
diff --git
a/fs/ocfs2/inode.c
b/fs/ocfs2/inode.c
index
f87f9bd
..
f29a90f
100644
(file)
--- a/
fs/ocfs2/inode.c
+++ b/
fs/ocfs2/inode.c
@@
-386,19
+386,9
@@
static int ocfs2_read_locked_inode(struct inode *inode,
u32 generation = 0;
status = -EINVAL;
- if (inode == NULL || inode->i_sb == NULL) {
- mlog(ML_ERROR, "bad inode\n");
- return status;
- }
sb = inode->i_sb;
osb = OCFS2_SB(sb);
- if (!args) {
- mlog(ML_ERROR, "bad inode args\n");
- make_bad_inode(inode);
- return status;
- }
-
/*
* To improve performance of cold-cache inode stats, we take
* the cluster lock here if possible.