ocfs2: get rid of impossible checks
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 4 Nov 2013 00:49:19 +0000 (19:49 -0500)
committerAl 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

index f87f9bd1edffd44830f27c33301e665be5a5ae05..f29a90fde6192b57889d6f5cce00085b824b19d6 100644 (file)
@@ -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.