From b19f13367454a57cd584031f0d52b05ac5ea97cd Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sun, 3 Nov 2013 19:49:19 -0500 Subject: [PATCH] ocfs2: get rid of impossible checks Signed-off-by: Al Viro --- fs/ocfs2/inode.c | 10 ---------- 1 file changed, 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.