All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boaz Harrosh <bharrosh@panasas.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] exofs: Remove redundant unlikely()
Date: Sun, 12 Dec 2010 14:50:04 +0000	[thread overview]
Message-ID: <4D04E11C.6070809@panasas.com> (raw)
In-Reply-To: <1291906521-1087-1-git-send-email-tklauser@distanz.ch>

On 12/09/2010 04:55 PM, Tobias Klauser wrote:
> IS_ERR() already implies unlikely(), so it can be omitted here.
> 
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
> ---
>  fs/exofs/super.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/fs/exofs/super.c b/fs/exofs/super.c
> index 79c3ae6..b2b12a8 100644
> --- a/fs/exofs/super.c
> +++ b/fs/exofs/super.c
> @@ -488,7 +488,7 @@ static int exofs_read_lookup_dev_table(struct exofs_sb_info **psbi,
>  		}
>  
>  		od = osduld_info_lookup(&odi);
> -		if (unlikely(IS_ERR(od))) {
> +		if (IS_ERR(od)) {
>  			ret = PTR_ERR(od);
>  			EXOFS_ERR("ERROR: device requested is not found "
>  				  "osd_name-%s =>%d\n", odi.osdname, ret);

I've applied it in my local tree, it'll be included in the next linux-next
version I release. For the next merge window.

Thanks. Good catch
Boaz


      reply	other threads:[~2010-12-12 14:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-09 14:55 [PATCH] exofs: Remove redundant unlikely() Tobias Klauser
2010-12-12 14:50 ` Boaz Harrosh [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D04E11C.6070809@panasas.com \
    --to=bharrosh@panasas.com \
    --cc=kernel-janitors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.