diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-11-03 19:49:19 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-11-09 00:16:32 -0500 |
commit | b19f13367454a57cd584031f0d52b05ac5ea97cd (patch) | |
tree | 5011be1bfcf016b1a15113e90cc4550f130f1248 /fs | |
parent | fbad2bd13235067eef0b5b5e18b40e84ca425815 (diff) | |
download | linux-b19f13367454a57cd584031f0d52b05ac5ea97cd.tar.bz2 |
ocfs2: get rid of impossible checks
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ocfs2/inode.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/ocfs2/inode.c b/fs/ocfs2/inode.c index f87f9bd1edff..f29a90fde619 100644 --- 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. |