Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90629
b: refs/heads/master
c: a9f83bf
h: refs/heads/master
i:
  90627: e08f099
v: v3
  • Loading branch information
YOSHIFUJI Hideaki committed Apr 11, 2008
1 parent b1d813b commit 1ddfa89
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 02e10b90cd478bda81b4644102b0009bcd1d14ab
refs/heads/master: a9f83bf3858672164ed531cbc60ee9082d21d53f
2 changes: 1 addition & 1 deletion trunk/net/ipv6/ip6mr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,7 @@ int ip6_mroute_setsockopt(struct sock *sk, int optname, char __user *optval, int
#ifdef CONFIG_IPV6_PIMSM_V2
case MRT6_PIM:
{
int v, ret;
int v;
if (get_user(v, (int __user *)optval))
return -EFAULT;
v = !!v;
Expand Down
3 changes: 0 additions & 3 deletions trunk/net/ipv6/ipv6_sockglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,6 @@ static int do_ipv6_setsockopt(struct sock *sk, int level, int optname,

if (sk->sk_protocol == IPPROTO_TCP) {
struct inet_connection_sock *icsk = inet_csk(sk);
struct net *net = sock_net(sk);

local_bh_disable();
sock_prot_inuse_add(net, sk->sk_prot, -1);
sock_prot_inuse_add(net, &tcp_prot, 1);
Expand All @@ -172,7 +170,6 @@ static int do_ipv6_setsockopt(struct sock *sk, int level, int optname,
tcp_sync_mss(sk, icsk->icsk_pmtu_cookie);
} else {
struct proto *prot = &udp_prot;
struct net *net = sock_net(sk);

if (sk->sk_protocol == IPPROTO_UDPLITE)
prot = &udplite_prot;
Expand Down

0 comments on commit 1ddfa89

Please sign in to comment.