From patchwork Fri Dec 14 10:53:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florent Fourcot X-Patchwork-Id: 206386 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 652182C0098 for ; Fri, 14 Dec 2012 21:53:58 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751439Ab2LNKxz (ORCPT ); Fri, 14 Dec 2012 05:53:55 -0500 Received: from fourcot.fr ([217.70.191.14]:42324 "EHLO olfflo.fourcot.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751323Ab2LNKxy (ORCPT ); Fri, 14 Dec 2012 05:53:54 -0500 Received: from reglisse.fourcot.fr (unknown [IPv6:2001:660:7301:3728:5e26:aff:fe0c:2f25]) (Authenticated sender: reglisse) by olfflo.fourcot.fr (Postfix) with ESMTPSA id 608922DFB4; Fri, 14 Dec 2012 11:53:53 +0100 (CET) Received: by reglisse.fourcot.fr (Postfix, from userid 1000) id 1C00915FD; Fri, 14 Dec 2012 11:53:53 +0100 (CET) From: Florent Fourcot To: rick.jones2@hp.com Cc: pablo@netfilter.org, yoshfuji@linux-ipv6.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, Florent Fourcot Subject: [PATCH] Fix comment for packets without data Date: Fri, 14 Dec 2012 11:53:33 +0100 Message-Id: <1355482413-18629-1-git-send-email-florent.fourcot@enst-bretagne.fr> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <50CA23AA.1040501@hp.com> References: <50CA23AA.1040501@hp.com> Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Remove ambiguity of double negation Signed-off-by: Florent Fourcot Acked-by: Rick Jones --- net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c b/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c index 00ee17c..137e245 100644 --- a/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c +++ b/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c @@ -81,8 +81,8 @@ static int ipv6_get_l4proto(const struct sk_buff *skb, unsigned int nhoff, } protoff = ipv6_skip_exthdr(skb, extoff, &nexthdr, &frag_off); /* - * (protoff == skb->len) mean that the packet doesn't have no data - * except of IPv6 & ext headers. but it's tracked anyway. - YK + * (protoff == skb->len) means the packet has not data, just + * IPv6 and possibly extensions headers, but it is tracked anyway */ if (protoff < 0 || (frag_off & htons(~0x7)) != 0) { pr_debug("ip6_conntrack_core: can't find proto in pkt\n");