From: Kefeng Wang Date: Wed, 5 Jun 2019 14:24:25 +0000 (+0800) Subject: fs: cifs: Drop unlikely before IS_ERR(_OR_NULL) X-Git-Tag: v5.4-rc1~518^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06f2fca7ff51d87c82fc911759373be5e1d0f7b6;p=platform%2Fkernel%2Flinux-rpi.git fs: cifs: Drop unlikely before IS_ERR(_OR_NULL) IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag, so no need to do that again from its callers. Drop it. Cc: linux-cifs@vger.kernel.org Signed-off-by: Kefeng Wang Signed-off-by: Steve French Reviewed-by: Paulo Alcantara --- diff --git a/fs/cifs/dfs_cache.c b/fs/cifs/dfs_cache.c index e3e1c13..1692c0c 100644 --- a/fs/cifs/dfs_cache.c +++ b/fs/cifs/dfs_cache.c @@ -492,7 +492,7 @@ static struct dfs_cache_entry *__find_cache_entry(unsigned int hash, #ifdef CONFIG_CIFS_DEBUG2 char *name = get_tgt_name(ce); - if (unlikely(IS_ERR(name))) { + if (IS_ERR(name)) { rcu_read_unlock(); return ERR_CAST(name); }