From patchwork Tue Feb 12 03:27:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chengguang Xu X-Patchwork-Id: 10807299 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0FB81922 for ; Tue, 12 Feb 2019 03:28:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E927B2ADBE for ; Tue, 12 Feb 2019 03:28:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC6C32ADCD; Tue, 12 Feb 2019 03:28:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 716E82ADBE for ; Tue, 12 Feb 2019 03:28:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726831AbfBLD2g (ORCPT ); Mon, 11 Feb 2019 22:28:36 -0500 Received: from mout.gmx.net ([212.227.15.19]:47339 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726699AbfBLD2g (ORCPT ); Mon, 11 Feb 2019 22:28:36 -0500 Received: from localhost.localdomain ([218.18.229.179]) by mail.gmx.com (mrgmx002 [212.227.17.184]) with ESMTPSA (Nemesis) id 0Mb7lL-1gdmje37YB-00KjXm; Tue, 12 Feb 2019 04:28:30 +0100 From: Chengguang Xu To: sfrench@samba.org Cc: linux-cifs@vger.kernel.org, Chengguang Xu Subject: [PATCH] cifs: remove redundant unlikely annotation Date: Tue, 12 Feb 2019 11:27:53 +0800 Message-Id: <20190212032753.14850-1-cgxu519@gmx.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:EvUIMP4bdj6XmEyHvaXXBLKu26urd2AbY/671aO+vQJ6oE6yop4 NNJ00oFmvBVO+NlcP9KILwNWxByKgjXUFQgfBj0hs3kQ9LhEVwDiAmCrttq91S1QJadZY/a MpwHXOesPQ2oRxw+qluc/Qkb8DPISYRB9QusWtDkmkyEj7lrNJJ/p+JeHQ4OFYEO7t6eAfE 4zNsagps2pTx9rL67YgIQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:4Bb+AIHyf5E=:23TzlNL6fSf4QxmKAkVFxt J7T09KuhMuehNG2e6l2HpWQUphKVIQ5rejTnLOqNJDlGTXfEVRnYm7YrL0j69l5NvpUb9DXjo 8bD+qdDv5IgGqrjZ9rdH2sgpbY9ufXrzpvcvqMrYg7lNDsow3HlRgO3oC1NsjejKan/e35bF1 A0YaJ+buhh5ODM26dZAasAqvfl1yEf/5HQt52C1OKMbdbg6LuFHHzXoXxf59pknvo7sds3ZVU dtwFVBP3QBy24ZD+76ppz2yfh3TsGGLnhMxp7XkO0nLtmVztvmD9gpXw24+hdRLH5ICGroN7x oGNDdoYsgjOWxbamy9OCwkPtnwXYO9tDt5QWMowzfvzFWc6ih/QxYa1piNEMfjwwMtdBwfIFM aJbLXy/lSHwMnDOc15D5ga8pDgsxtWnIEm4Ho0gV/Ark/mHh35P8f+LorvbFJ3wMghRFUiEvv d5r50leJnnzlw2+tcP6QyRD0q9x3RAXhA3nfmHazGr1tKBIrX42Qpmjf+YJ5awITfMKWZQTGm 7qXupSFZp+5N7Fyk342Dg9gXd9Id/VinjQYqcFDX066Az1uPU0lhO2vEikQWk9hNFoup62x7Z 9EtcBrHhrUU1Vbtxrm2xaObrsi0hawXAYDoqdtngG39ovnlyJX/am8AqjS1cHwZZ6cnZyJ8OP g9veRAmWDgjGARD74xxyEVZajxsCyuhIN3sZWr1NI/6PpYNItovBLEaOy+9ziynS0guksW6L0 BjoCZATWGENOvHsBKuJDzv0HEgxwNKdpttGs6I0qF4Q+//pVA/SAY+xgg1tu2DgNaT7jAdYWu 7Pl2MY9B2ggQF6a7L4+MH4HseizFo2w7dyqhJl7d8+Cf8Lvr3napKWGQNDtD4LBqOL7Cp5ihU jyCv6vtbpH7qoFawYR+98XQOZ3grjld0EXrW3P1wDrjrxNZQwqW1REoVHp4dnH Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP unlikely has already included in IS_ERR(), so just remove it. Signed-off-by: Chengguang Xu --- 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 09b7d0d4f6e4..4342aef21b85 100644 --- a/fs/cifs/dfs_cache.c +++ b/fs/cifs/dfs_cache.c @@ -491,7 +491,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); }