From patchwork Sun Oct 11 16:32:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Morris X-Patchwork-Id: 528765 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id C8B5214090A for ; Mon, 12 Oct 2015 03:33:07 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ipmorris.net header.i=@ipmorris.net header.b=VRh01dy5; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751845AbbJKQcc (ORCPT ); Sun, 11 Oct 2015 12:32:32 -0400 Received: from inet-gw.chirality.org.uk ([88.97.209.22]:39506 "EHLO cedar.ipmorris.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751594AbbJKQc2 (ORCPT ); Sun, 11 Oct 2015 12:32:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ipmorris.net; s=cedar; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=xfBf9zm+95GYFfk658CGssGmJqvB8iLEmsPWXMA4SfU=; b=VRh01dy5ckQ7my35OnKTcSH2htX9VeegP8fBfDxqnqB0jPjilahtnfh/8VZ4NoeM+UK9gik8TsWB9QMZok3BcrNUrMTGxFpn4bdM96NvabViYrm0xMZqtnGisG5AVMKo4wZ84CKFtRTVjmgQZdgRtNcbmoD2mj8+R0XLRKK2Zi6msHvntyKS5giANr/IJdGF68/YmuxDmhKKUjHPZrCTvJa/s+M/1N+aHqVsyI+qbQdBQN16q0QQ4bhnLPlU9Zmx+Pje0bmOWucwLIQPZ4zhpy/L65jQ+VijhNacfEucQxRdcrWo+7Fre1hc4cekgX4o5W8Koh1muAj9tBfJhQZGTQ==; Received: from localhost ([127.0.0.1] helo=portable-home.client.ipmorris.net) by cedar.ipmorris.net with esmtp (Exim 4.82) (envelope-from ) id 1ZlJXu-0006aQ-9r; Sun, 11 Oct 2015 17:32:26 +0100 From: Ian Morris To: netfilter-devel@vger.kernel.org, netdev@vger.kernel.org Cc: Ian Morris Subject: [PATCH nf-next 6/7] netfilter-ipv6: improve if statements Date: Sun, 11 Oct 2015 17:32:19 +0100 Message-Id: <1444581140-6255-7-git-send-email-ipm@chirality.org.uk> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1444581140-6255-1-git-send-email-ipm@chirality.org.uk> References: <1444581140-6255-1-git-send-email-ipm@chirality.org.uk> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Correct whitespace layout of if statements. No changes detected by objdiff. Signed-off-by: Ian Morris --- net/ipv6/netfilter/ip6_tables.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c index 80f014a..bd660ec 100644 --- a/net/ipv6/netfilter/ip6_tables.c +++ b/net/ipv6/netfilter/ip6_tables.c @@ -133,7 +133,7 @@ ip6_packet_match(const struct sk_buff *skb, /* ... might want to do something with class and flowlabel here ... */ /* look for the desired protocol header */ - if((ip6info->flags & IP6T_F_PROTO)) { + if (ip6info->flags & IP6T_F_PROTO) { int protohdr; unsigned short _frag_off; @@ -151,7 +151,7 @@ ip6_packet_match(const struct sk_buff *skb, ip6info->proto); if (ip6info->proto == protohdr) { - if(ip6info->invflags & IP6T_INV_PROTO) { + if (ip6info->invflags & IP6T_INV_PROTO) { return false; } return true;