Skip to content

Commit b19f133

Browse files
author
Al Viro
committed
ocfs2: get rid of impossible checks
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent fbad2bd commit b19f133

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

‎fs/ocfs2/inode.c‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -386,19 +386,9 @@ static int ocfs2_read_locked_inode(struct inode *inode,
386386
u32 generation = 0;
387387

388388
status = -EINVAL;
389-
if (inode == NULL || inode->i_sb == NULL) {
390-
mlog(ML_ERROR, "bad inode\n");
391-
return status;
392-
}
393389
sb = inode->i_sb;
394390
osb = OCFS2_SB(sb);
395391

396-
if (!args) {
397-
mlog(ML_ERROR, "bad inode args\n");
398-
make_bad_inode(inode);
399-
return status;
400-
}
401-
402392
/*
403393
* To improve performance of cold-cache inode stats, we take
404394
* the cluster lock here if possible.

0 commit comments

Comments
 (0)