Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7292742ybi; Wed, 5 Jun 2019 14:55:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqytY2jza4SosLIqmhc8xcNfvA+BXxxNWiWdumxAkgmQlASrOLrnLQN3oTi2UKhqcPEdDBS9 X-Received: by 2002:a17:902:54f:: with SMTP id 73mr46094843plf.246.1559771703140; Wed, 05 Jun 2019 14:55:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559771703; cv=none; d=google.com; s=arc-20160816; b=voQbHE8/3y1nh9pcox061/Osb6652ynsMvyyI4gyzCXJyEtPpbbz/qbTkOEQ98Ai5L DevATyt9JguCNOUEkEG/kBXCwK+IfIbwywKpHHKO/CUSHwhBKLXEvcV/FSjt9c5d9G0H H970qW+IbEYNr0HMKvuu3ZU3dJTcaH0FpnmS4ZY5vu0De9bhOEmrMZl51DiEjPMDc729 6m6rGKwYSf3i6oiuxR6skFGt/JQ9Kx52a/yotC/7G2cUKGns7mq28YYWIGWZEolR2IVJ lpLut1tQFlOibbKLwD1xAWZVSHAsnDLNWN7i0k8UiozTErZt4gy7KqxEoezLgCygx664 2MTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=pcjlD80KxqjkrJpLh0zg0y8IPXMG4YKyEPyNxaKimzE=; b=p2NkRcGzGUQ2DPg/TnIdc5uL5krr0o+ycqlUPh/GKvokdX1s2M1XM6YpucMCrRlgvW JaFkPfaMGJ4C0junTf8CdQbUTvceDnGO3wMvuHxR4R8NgB1xsYop5/3CnJVm1tvvdMb/ 7ui5hG+btMXZ4dSOPZ+CKS6HAm5UQ4yPtE6xUguoY+mhL2piuVUmAFb4B6TZh4aQY5US F51aTPDeFnMH+t87Bd2YeFI7Uhx/hheNURO96m4aXkR2UnQMhZ09bT/hZKDDmG3pw+FZ FG3wWW2TpF04WccxX8hRSimkImn5Js/+6eqdTZbsg04Lo6bVQ8atc8aDZJh0NCc0z13R o4Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o0onlU0z; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1si5363pjs.38.2019.06.05.14.54.46; Wed, 05 Jun 2019 14:55:03 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o0onlU0z; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726723AbfFEVwn (ORCPT + 99 others); Wed, 5 Jun 2019 17:52:43 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:46271 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726541AbfFEVwm (ORCPT ); Wed, 5 Jun 2019 17:52:42 -0400 Received: by mail-pf1-f196.google.com with SMTP id y11so111503pfm.13; Wed, 05 Jun 2019 14:52:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pcjlD80KxqjkrJpLh0zg0y8IPXMG4YKyEPyNxaKimzE=; b=o0onlU0z+qsTXYziIZn66NQ2jsSX0MO6KYoQXm0fIF79bfEs+9YKw8o6seNpgADsOe VN8QCmTR4+lGIVXmTw0UbHjnRZQQ4Mqj/fw2JcMB4KRzyZd0+dIL/4lfIqXIWMJWzZYW gnRifZJTd+FZ+ao2kvpDb7/Lwxp7fPB9VKthhkYC/2rr1dKeDOVHf9jbCFwwMjBZTwSD VNi3VnXQJus9WpKtF+iHqSfZmYHB3dg/ypFqCYrdemCOKb03FjwmJTUtbpBLHJcUJQvS 0W0azfecf8jx+6LzLHeY40SG+61o66fsnf4bnoM/CJ6ao07c9tQcQMS8a8t0MG5jAT9s 50Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pcjlD80KxqjkrJpLh0zg0y8IPXMG4YKyEPyNxaKimzE=; b=qg1oWxD8qvDm2ieIWGbUygLVkvZjFIvCfe8k3ONWNmR06t5zGuNQoArI/UKe7VC4+E GXP7r6tefXvDyM++mXFQWrLmCIxXXH5MUcOkntxHODI2PsuUCcihFs7n9GO9t/ZOupTr KLmIcGktnJG6WlHG5ryAUn4dKi7W9ULIU47RLbamePwH3Z8If5oN9yFadvA34r6S6qZE UVxhhD1H3YTr8HUfb6lQiNMNkNYPVZi/frXQCLrc0GjWT9RSTu+F1AJiCIH0ohHjw7ji 2A5/eQPA7Cx68VFfFm3qNIZnyR86XD/89ifSyqPmdTvO25YILWmlmmlL+AKLQJia4++X YBfw== X-Gm-Message-State: APjAAAWCbu/xdy4LtPjQmlsIiqBGJ7Rlfw1IYvJ8fNESZWC3nJTCfeTt Phw+UbHOY4JJdOdNpbDwU/HDTOMTcpJeiRlks4Q= X-Received: by 2002:a62:7552:: with SMTP id q79mr29394127pfc.71.1559771561768; Wed, 05 Jun 2019 14:52:41 -0700 (PDT) MIME-Version: 1.0 References: <1559769249-22011-1-git-send-email-info@metux.net> In-Reply-To: <1559769249-22011-1-git-send-email-info@metux.net> From: Steve French Date: Wed, 5 Jun 2019 16:52:30 -0500 Message-ID: Subject: Re: [PATCH] fs: cifs: drop unneeded likely() call around IS_ERR() To: "Enrico Weigelt, metux IT consult" Cc: LKML , CIFS , Kefeng Wang Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This duplicates a patch submitted earlier by Kefeng Wang which I plan to merge later today into cifs-2.6.git for-next On Wed, Jun 5, 2019 at 4:14 PM Enrico Weigelt, metux IT consult wrote: > > 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 > -- Thanks, Steve