Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b19f1336 authored by Al Viro's avatar Al Viro
Browse files

ocfs2: get rid of impossible checks



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent fbad2bd1
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -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.