get_file_rcu(): no need to check for NULL separately

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

Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 613aee94 c4aab262

+2 -7
+2 -7
fs/file.c
··· 920 920 struct file __rcu *file; 921 921 922 922 file = __get_file_rcu(f); 923 - if (unlikely(!file)) 924 - return NULL; 925 - 926 - if (unlikely(IS_ERR(file))) 927 - continue; 928 - 929 - return file; 923 + if (!IS_ERR(file)) 924 + return file; 930 925 } 931 926 } 932 927 EXPORT_SYMBOL_GPL(get_file_rcu);