From 9d317732eeeed959b3d0fa2f7997f059d74ad75b Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Tue, 7 Dec 2010 17:01:55 +0100 Subject: Whitespace, checkpatch.pl cleanups. --- kernel/include/linux/netfilter/ip_set_getport.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'kernel/include/linux/netfilter/ip_set_getport.h') diff --git a/kernel/include/linux/netfilter/ip_set_getport.h b/kernel/include/linux/netfilter/ip_set_getport.h index e4d469d..1597fa9 100644 --- a/kernel/include/linux/netfilter/ip_set_getport.h +++ b/kernel/include/linux/netfilter/ip_set_getport.h @@ -18,14 +18,14 @@ get_port(const struct sk_buff *skb, int protocol, unsigned int protooff, case IPPROTO_TCP: { struct tcphdr _tcph; const struct tcphdr *th; - + th = skb_header_pointer(skb, protooff, sizeof(_tcph), &_tcph); if (th == NULL) /* No choice either */ return false; - - *port = src ? th->source : th->dest; - break; + + *port = src ? th->source : th->dest; + break; } case IPPROTO_UDP: { struct udphdr _udph; @@ -35,29 +35,29 @@ get_port(const struct sk_buff *skb, int protocol, unsigned int protooff, if (uh == NULL) /* No choice either */ return false; - - *port = src ? uh->source : uh->dest; - break; + + *port = src ? uh->source : uh->dest; + break; } case IPPROTO_ICMP: { struct icmphdr _icmph; const struct icmphdr *ic; - + ic = skb_header_pointer(skb, protooff, sizeof(_icmph), &_icmph); if (ic == NULL) return false; - + *port = (ic->type << 8) & ic->code; break; } case IPPROTO_ICMPV6: { struct icmp6hdr _icmph; const struct icmp6hdr *ic; - + ic = skb_header_pointer(skb, protooff, sizeof(_icmph), &_icmph); if (ic == NULL) return false; - + *port = (ic->icmp6_type << 8) & ic->icmp6_code; break; } -- cgit v1.2.3