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
@@ -597,7 +597,7 @@ ncp_fill_cache(struct file *file, struct dir_context *ctx,
|
||||
qname.name = __name;
|
||||
|
||||
newdent = d_hash_and_lookup(dentry, &qname);
|
||||
if (unlikely(IS_ERR(newdent)))
|
||||
if (IS_ERR(newdent))
|
||||
goto end_advance;
|
||||
if (!newdent) {
|
||||
newdent = d_alloc(dentry, &qname);
|
||||
|
Reference in New Issue
Block a user