Skip to content

Commit 9e8ba5f

Browse files
braunudavem330
authored andcommitted
af_iucv: remove unused timer infrastructure
af_iucv contains timer infrastructure which is not exploited. This patch removes the timer related code parts. Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 816abba commit 9e8ba5f

2 files changed

Lines changed: 0 additions & 23 deletions

File tree

‎include/net/iucv/af_iucv.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ unsigned int iucv_sock_poll(struct file *file, struct socket *sock,
146146
poll_table *wait);
147147
void iucv_sock_link(struct iucv_sock_list *l, struct sock *s);
148148
void iucv_sock_unlink(struct iucv_sock_list *l, struct sock *s);
149-
int iucv_sock_wait_cnt(struct sock *sk, unsigned long timeo);
150149
void iucv_accept_enqueue(struct sock *parent, struct sock *sk);
151150
void iucv_accept_unlink(struct sock *sk);
152151
struct sock *iucv_accept_dequeue(struct sock *parent, struct socket *newsock);

‎net/iucv/af_iucv.c‎

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -406,25 +406,6 @@ static int afiucv_hs_send(struct iucv_message *imsg, struct sock *sock,
406406
return err;
407407
}
408408

409-
/* Timers */
410-
static void iucv_sock_timeout(unsigned long arg)
411-
{
412-
struct sock *sk = (struct sock *)arg;
413-
414-
bh_lock_sock(sk);
415-
sk->sk_err = ETIMEDOUT;
416-
sk->sk_state_change(sk);
417-
bh_unlock_sock(sk);
418-
419-
iucv_sock_kill(sk);
420-
sock_put(sk);
421-
}
422-
423-
static void iucv_sock_clear_timer(struct sock *sk)
424-
{
425-
sk_stop_timer(sk, &sk->sk_timer);
426-
}
427-
428409
static struct sock *__iucv_get_sock_by_name(char *nm)
429410
{
430411
struct sock *sk;
@@ -477,7 +458,6 @@ static void iucv_sock_close(struct sock *sk)
477458
int err, blen;
478459
struct sk_buff *skb;
479460

480-
iucv_sock_clear_timer(sk);
481461
lock_sock(sk);
482462

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

592-
setup_timer(&sk->sk_timer, iucv_sock_timeout, (unsigned long)sk);
593-
594572
iucv_sock_link(&iucv_sk_list, sk);
595573
return sk;
596574
}

0 commit comments

Comments
 (0)