mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Reviewed-by: David Howells <[email protected]> Reviewed-by: Steve French <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
parent
bf69a3b60e
commit
a1c83681d5
8 changed files with 11 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue