summaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-08-12 12:29:44 +0200
committerJiri Kosina <jkosina@suse.cz>2015-09-29 15:13:58 +0200
commita1c83681d52704c766d576bea2d7f2f99e8dde23 (patch)
tree7439a3502559d447c21d5aabfbd483f456d0ec66 /fs/cifs
parentdrivers: net: Drop unlikely before IS_ERR(_OR_NULL) (diff)
downloadlinux-a1c83681d52704c766d576bea2d7f2f99e8dde23.tar.xz
linux-a1c83681d52704c766d576bea2d7f2f99e8dde23.zip
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>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/readdir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c
index b1eede3678a9..0557c45e9c33 100644
--- a/fs/cifs/readdir.c
+++ b/fs/cifs/readdir.c
@@ -84,7 +84,7 @@ cifs_prime_dcache(struct dentry *parent, struct qstr *name,
cifs_dbg(FYI, "%s: for %s\n", __func__, name->name);
dentry = d_hash_and_lookup(parent, name);
- if (unlikely(IS_ERR(dentry)))
+ if (IS_ERR(dentry))
return;
if (dentry) {