Skip to contentSkip to conversation

ipv6: minor cleanup in net/ipv6/tcp_ipv6.c.

PATCH Applied Rami Rosen 2 participants 2 messages Jun 16, 2008 – Jun 17, 2008

Subsystems (3)
lore
Share & tools
lore

Rami Rosen

author
#0 lore raw

PATCH 2/2 ipv6: minor cleanup in net/ipv6/tcp_ipv6.c.

Hi,

In net/ipv6/tcp_ipv6.c:

1) Remove unneeded tcp_v6_send_check() declaration.

2) Unify two consecutive #ifdef CONFIG_TCP_MD5SIG (with nothing in between them) into one #ifdef CONFIG_TCP_MD5SIG.

Regards,
Rami Rosen

From 2274d94fafcfa8e1420fba7b5f081caa27d8688c Mon Sep 17 00:00:00 2001
From: root <root@sbc54.(none)>
Date: Mon, 16 Jun 2008 11:45:05 +0300
Subject: [PATCH 1220/1220] tcp_ipv6.c cleanup

---
 net/ipv6/tcp_ipv6.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
net/ipv6/tcp_ipv6.c +0 -5
index cb46749..0a437e0 100644
@@ -72,8 +72,6 @@
 
 static void	tcp_v6_send_reset(struct sock *sk, struct sk_buff *skb);
 static void	tcp_v6_reqsk_send_ack(struct sk_buff *skb, struct request_sock *req);
-static void	tcp_v6_send_check(struct sock *sk, int len,
-				  struct sk_buff *skb);
 
 static int	tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb);
 
@@ -1101,9 +1099,6 @@ static void tcp_v6_send_ack(struct tcp_timewait_sock *tw,
 #ifdef CONFIG_TCP_MD5SIG
 	struct tcp_md5sig_key *key;
 	struct tcp_md5sig_key tw_key;
-#endif
-
-#ifdef CONFIG_TCP_MD5SIG
 	if (!tw && skb->sk) {
 		key = tcp_v6_md5_do_lookup(skb->sk, &ipv6_hdr(skb)->daddr);
 	} else if (tw && tw->tw_md5_keylen) {
Signature · 1 line
1.5.3.3
maintainer
#1 lore raw

From: "Rami Rosen" <[email protected]>
Date: Mon, 16 Jun 2008 12:09:31 +0300

Quoted 2 lines

2) Unify two consecutive #ifdef CONFIG_TCP_MD5SIG (with nothing in between them) into one #ifdef CONFIG_TCP_MD5SIG.

I think there should be an empty line between local variable declarations and actual code in a function. Please fix this up, thanks.