fs: cifs: Drop unlikely before IS_ERR(_OR_NULL)
diff mbox series

Message ID 20190605142428.84784-2-wangkefeng.wang@huawei.com
State New
Headers show
  • fs: cifs: Drop unlikely before IS_ERR(_OR_NULL)
Related show

Commit Message

Kefeng Wang June 5, 2019, 2:24 p.m. UTC
IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag,
so no need to do that again from its callers. Drop it.

Cc: Steve French <stfrench@microsoft.com>
Cc: linux-cifs@vger.kernel.org
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
 fs/cifs/dfs_cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/fs/cifs/dfs_cache.c b/fs/cifs/dfs_cache.c
index e3e1c13df439..1692c0c6c23a 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,
 			char *name = get_tgt_name(ce);
-			if (unlikely(IS_ERR(name))) {
+			if (IS_ERR(name)) {
 				return ERR_CAST(name);