Commit 613aee94 authored by Al Viro's avatar Al Viro
Browse files

get_file_rcu(): no need to check for NULL separately



IS_ERR(NULL) is false and IS_ERR() already comes with unlikely()...

Reviewed-by: default avatarChristian Brauner <brauner@kernel.org>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent c4aab262
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -920,12 +920,7 @@ struct file *get_file_rcu(struct file __rcu **f)
		struct file __rcu *file;

		file = __get_file_rcu(f);
		if (unlikely(!file))
			return NULL;

		if (unlikely(IS_ERR(file)))
			continue;

		if (!IS_ERR(file))
			return file;
	}
}