Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7265041ybi; Wed, 5 Jun 2019 14:16:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLJ9zG4Bhf/S/cdXVCIE5Los+Pn4v+CUzN3k1C8Qf9a1k7jxfisorYIHg7hDmbOUNLcU0q X-Received: by 2002:a63:cc43:: with SMTP id q3mr1066278pgi.438.1559769413186; Wed, 05 Jun 2019 14:16:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559769413; cv=none; d=google.com; s=arc-20160816; b=rsMpPtBjojkVgwf5Q2jxKcDGmxK91bCqCntmgjXJWY+9RAitcOtfADp0bWIBloDASC 4W9cN2dx17d9XnETukObX8GGJOcGGSg4OnnE2OBXINu/0hnX3g00ceMoMXhphHpMwc+K G0hQHbsV1rcGVv/hw2+vXl41WwVG+LRKXf//1LI4YEcF47SupKlE2o2oYpZzw91I7+tU /l2I1ckCWNjY0fAUx1N0SpfgPpbYixll1mv80mcXakxmkt9LaTSC1Mos76+7jfdggFDf ey0TnY8kHh6CVuAFz9PZg02wOCyZWkW71d+7TuCDS3yWI9gc+uy6WEiP7nSgbiIe4uVA usDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=jRkbxiDAJfkCHHdM5TARckdCtiP6Vj3V47/ncPhee5w=; b=054+Abl6ZFDKaGQdi7nGuhKwNY9D5EtM8kaTkZFvDDtjP88HzB2LXzswzONn3h5gzd eYYMtnP8Q0vV/hPZqg1fW/9C8fWeQ/bSBz62IGRYEXJx71Bd6CLwteqNqUMqe+rYNkXg 6R1YVwLxkrnthDMfDDQ3R3kh36ThX8+bL8G7fNqRSei14vme1i3K0x68MwZh8JN2WSmp pwxGKJwSC1aJN2XRMVqHYJYjZb606m0ga5YpBsK+H5R5tMGukdp5WFEErUyFww8aFmGH wvIXhqbfPhKUbfv0XgpemV26Ry0+SOTIzMZDIOx3pmrA0CZTgvxHzCD+M42rFS7Gsn8F aPhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i4si29071013pfa.218.2019.06.05.14.16.35; Wed, 05 Jun 2019 14:16:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726597AbfFEVOM (ORCPT + 99 others); Wed, 5 Jun 2019 17:14:12 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:45451 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726305AbfFEVOM (ORCPT ); Wed, 5 Jun 2019 17:14:12 -0400 Received: from orion.localdomain ([77.2.1.21]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MMp08-1hICqU2EL6-00Ijls; Wed, 05 Jun 2019 23:14:10 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: linux-cifs@vger.kernel.org Subject: [PATCH] fs: cifs: drop unneeded likely() call around IS_ERR() Date: Wed, 5 Jun 2019 23:14:09 +0200 Message-Id: <1559769249-22011-1-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 X-Provags-ID: V03:K1:qkVUq1ddLyADe4tmyATA1skl2fayfUJ70B3v6uWiplTRnUk/fQe YLua2/cyRO1xn/l5xQ3kPnw6k862E/uBTZ+J8O+2soe8KvxPOAl7LMkW/ko439On/cli+Gn eyX2WJMch+5rurK9eMHCK5WjxQk/vfcZBfql+BlR4FYb0oUdtnCFmqnyQ1Y6UCLEARrgYY4 d54jCDL8ux0MFpMJA1KWQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:bZqIPo62mx4=:BxMCWN3lSz9NydUk7ItuDF naR2fsU5d1IsuB7DG0eO5GmtUbUbHy2otvDYTrK5W46m3hKgvEpUTV7vVSTAgXecB/f9omY/Z HCojY+e4xM/zmR9veGM6PMHFDS1LRXZHZcZh/7AteRcq6ZgWcoLe4ZYHnINosnfwbfNXyLyFh tN7K2+PDH7j0M2DWwMlX1ywptk3/65eosTeXNo7b9DCZH5k/n8gZDOS9+BmkwceEBi2ZyyD+G 66QebDvIRufmeoAtULpPQ1gr3Ti90ZN9YwDpQe22AmZ3hVEqQSgv437bkwgRyJMfqu/PUHugb ljgMBRB1+StnYM13TMDucAg4sJwBmfbFwCm9YGRIxNgWhGXm/Vc+77aq3uJ4E2lkllVtxVxhd nUppaBDcQhgSf/UufEGUPuOUSMtAOanUauX49qSaSz/wEPKfdl1UpwVVGYfhyxowG5wmkWGlx cEkXrPu9w/mP3jl6yTqognKtzmetb5xWAVD8gRZGWdaAo/fUeKWMfWai/gqzSCOvTdZwMjPPo EnSY2DfBC8+5sRWD1oH/LP01KNWwE1wS3AripvvDN87XeknlfoJ0MkSCPjcPg5jfZVEDR0qgU Eek5yBVdJC/O6fuLVMjL7W+p600lWyp1pgmW0X3/PzvU8QqfFopRv0IPqPUDy9WuMTnRfIua6 7mCjh3sNVLsXDlx1i26LgJ2KYR9NUM+titGWMWq9UrGRqH+Z5wCpXf0/bTprmznQCKXXArl0F ZXpqqROuxKsgODal0E5W/42/LR3ooktwsYy3AA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Enrico Weigelt IS_ERR() already calls unlikely(), so this extra unlikely() call around IS_ERR() is not needed. Signed-off-by: Enrico Weigelt --- fs/cifs/dfs_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 1.9.1