From: Marek Lindner <lindner_marek@yahoo.de>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: netdev@vger.kernel.org,
Simon Wunderlich <siwu@hrz.tu-chemnitz.de>,
kernel-janitors@vger.kernel.org,
"David S. Miller" <davem@davemloft.net>,
Dan Carpenter <dan.carpenter@oracle.com>
Subject: Re: [B.A.T.M.A.N.] [patch] batman-adv: remove extra negation in gw_out_of_range()
Date: Tue, 29 Nov 2011 14:41:23 +0800 [thread overview]
Message-ID: <201111291441.24078.lindner_marek@yahoo.de> (raw)
In-Reply-To: <20111129060909.GA6098@elgon.mountain>
On Tuesday, November 29, 2011 14:09:09 Dan Carpenter wrote:
> There is a typo here where an extra '!' made the check to the opposite
> of what was intended.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
>
> diff --git a/net/batman-adv/gateway_client.c
> b/net/batman-adv/gateway_client.c index 9373a14..24403a7 100644
> --- a/net/batman-adv/gateway_client.c
> +++ b/net/batman-adv/gateway_client.c
> @@ -695,7 +695,7 @@ bool gw_out_of_range(struct bat_priv *bat_priv,
> }
>
> neigh_old = find_router(bat_priv, orig_dst_node, NULL);
> - if (!!neigh_old)
> + if (!neigh_old)
> goto out;
>
> if (curr_tq_avg - neigh_old->tq_avg > GW_THRESHOLD)
Wow - you are right! Applied in our tree.
Thanks,
Marek
prev parent reply other threads:[~2011-11-29 6:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-29 6:09 [B.A.T.M.A.N.] [patch] batman-adv: remove extra negation in gw_out_of_range() Dan Carpenter
2011-11-29 6:41 ` Marek Lindner [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=201111291441.24078.lindner_marek@yahoo.de \
--to=lindner_marek@yahoo.de \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
--cc=dan.carpenter@oracle.com \
--cc=davem@davemloft.net \
--cc=kernel-janitors@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=siwu@hrz.tu-chemnitz.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox