From patchwork Mon Dec 12 11:31:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Lindner X-Patchwork-Id: 1491 Return-Path: Received: from nm9.bullet.mail.ukl.yahoo.com (nm9.bullet.mail.ukl.yahoo.com [217.146.182.250]) by open-mesh.org (Postfix) with SMTP id C18AF6007E1 for ; Mon, 12 Dec 2011 12:32:51 +0100 (CET) Authentication-Results: open-mesh.org; dkim=pass (1024-bit key) header.i=@yahoo.de; dkim-adsp=none Received: from [217.146.183.215] by nm9.bullet.mail.ukl.yahoo.com with NNFMP; 12 Dec 2011 11:32:51 -0000 Received: from [77.238.184.67] by tm8.bullet.mail.ukl.yahoo.com with NNFMP; 12 Dec 2011 11:32:51 -0000 Received: from [127.0.0.1] by smtp136.mail.ukl.yahoo.com with NNFMP; 12 Dec 2011 11:32:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1323689571; bh=Q3hkz8SoFhFRTGE+Mx9Panxsl8skuwIjgCR6LwnBKuI=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References; b=mT0wNtCPD5dGT56PiervGRcHRca+lxV+u0DWHVpxO6xcGlUmL5m/Kse7Z6rmM/u6m0DdSPjtchkbsHta4mof+nxP84y/Rluhpfy1HUJJ6TS7F3JQL4Sxh2UXQb9Y3EH/pEaGxTPkCBngg6NJOg9yWllGG3BFPcJ52+xpm3xD4y8= X-Yahoo-Newman-Id: 603032.12279.bm@smtp136.mail.ukl.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 9Tjq9JkVM1ldMuIiJdkLpqdLn5CnsvnLrE3H0DumFPMEt0S 6buxZDNvjU7KtUiSm7AGUkMsaxRmOvVrjx.UQk7i.yzEa0yWx.5ophdglsJ0 PN7AUWeFqenatDpXw3VnJzDFa3K6dsBcJEpMmCsKi7qkHj6orHrhtxlxgr8O aZmDr6I_FW1eNCZVqL953LwTxXomZ36jeJunT3Di4A0a2d.4PlBETL_gswJh 8u4ThDJYsRStsW0YTaIR4C5eZodMxikyrY1387xC8bVpPLaSEiWhLP9_57mi OdqjlKbh9mpa6uU9FTVpvjRR843L2s2cPoxGTQH_jjk7FEWq7xQGBMX8qoq7 pkFidJdqcfyD3Y2VvORyUspBkBLLStMBSX7R.nRUfNNcNxqs- X-Yahoo-SMTP: tW.h3tiswBBMXO2coYcbPigGD5Lt6zY_.Zc- Received: from localhost (lindner_marek@210.177.7.38 with plain) by smtp136.mail.ukl.yahoo.com with SMTP; 12 Dec 2011 11:32:50 +0000 GMT From: Marek Lindner To: davem@davemloft.net Date: Mon, 12 Dec 2011 19:31:51 +0800 Message-Id: <1323689516-24427-8-git-send-email-lindner_marek@yahoo.de> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1323689516-24427-1-git-send-email-lindner_marek@yahoo.de> References: <1323689516-24427-1-git-send-email-lindner_marek@yahoo.de> Cc: netdev@vger.kernel.org, b.a.t.m.a.n@lists.open-mesh.org, Marek Lindner , Dan Carpenter Subject: [B.A.T.M.A.N.] [PATCH 07/11] batman-adv: remove extra negation in gw_out_of_range() X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2011 11:32:51 -0000 From: Dan Carpenter There is a typo here where an extra '!' made the check to the opposite of what was intended. Signed-off-by: Dan Carpenter Signed-off-by: Marek Lindner --- net/batman-adv/gateway_client.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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)