fs: Drop unlikely before IS_ERR(_OR_NULL)
IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there is no need to do that again from its callers. Drop it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Jeff Layton <jlayton@poochiereds.net> Reviewed-by: David Howells <dhowells@redhat.com> Reviewed-by: Steve French <smfrench@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:

committed by
Jiri Kosina

parent
bf69a3b60e
commit
a1c83681d5
@@ -948,7 +948,7 @@ static struct ctl_dir *get_subdir(struct ctl_dir *dir,
|
||||
found:
|
||||
subdir->header.nreg++;
|
||||
failed:
|
||||
if (unlikely(IS_ERR(subdir))) {
|
||||
if (IS_ERR(subdir)) {
|
||||
pr_err("sysctl could not get directory: ");
|
||||
sysctl_print_dir(dir);
|
||||
pr_cont("/%*.*s %ld\n",
|
||||
|
Reference in New Issue
Block a user