Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279030
b: refs/heads/master
c: 9e8ba5f
h: refs/heads/master
v: v3
  • Loading branch information
Ursula Braun authored and David S. Miller committed Dec 20, 2011
1 parent 553796b commit 9f38e94
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 24 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: 816abbadf981e64b2342e1a875592623619560a4
refs/heads/master: 9e8ba5f3ec35cba4fd8a8bebda548c4db2651e40
1 change: 0 additions & 1 deletion trunk/include/net/iucv/af_iucv.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ unsigned int iucv_sock_poll(struct file *file, struct socket *sock,
poll_table *wait);
void iucv_sock_link(struct iucv_sock_list *l, struct sock *s);
void iucv_sock_unlink(struct iucv_sock_list *l, struct sock *s);
int iucv_sock_wait_cnt(struct sock *sk, unsigned long timeo);
void iucv_accept_enqueue(struct sock *parent, struct sock *sk);
void iucv_accept_unlink(struct sock *sk);
struct sock *iucv_accept_dequeue(struct sock *parent, struct socket *newsock);
Expand Down
22 changes: 0 additions & 22 deletions trunk/net/iucv/af_iucv.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,25 +406,6 @@ static int afiucv_hs_send(struct iucv_message *imsg, struct sock *sock,
return err;
}

/* Timers */
static void iucv_sock_timeout(unsigned long arg)
{
struct sock *sk = (struct sock *)arg;

bh_lock_sock(sk);
sk->sk_err = ETIMEDOUT;
sk->sk_state_change(sk);
bh_unlock_sock(sk);

iucv_sock_kill(sk);
sock_put(sk);
}

static void iucv_sock_clear_timer(struct sock *sk)
{
sk_stop_timer(sk, &sk->sk_timer);
}

static struct sock *__iucv_get_sock_by_name(char *nm)
{
struct sock *sk;
Expand Down Expand Up @@ -477,7 +458,6 @@ static void iucv_sock_close(struct sock *sk)
int err, blen;
struct sk_buff *skb;

iucv_sock_clear_timer(sk);
lock_sock(sk);

switch (sk->sk_state) {
Expand Down Expand Up @@ -589,8 +569,6 @@ static struct sock *iucv_sock_alloc(struct socket *sock, int proto, gfp_t prio)
sk->sk_protocol = proto;
sk->sk_state = IUCV_OPEN;

setup_timer(&sk->sk_timer, iucv_sock_timeout, (unsigned long)sk);

iucv_sock_link(&iucv_sk_list, sk);
return sk;
}
Expand Down

0 comments on commit 9f38e94

Please sign in to comment.