]> git.karo-electronics.de Git - linux-beck.git/blobdiff - net/sctp/ulpqueue.c
sctp: Remove some redundant code
[linux-beck.git] / net / sctp / ulpqueue.c
index 877e55066f89fa34bad5b81f8fdcf07d2818d5eb..84d0fdaf7de9d9b14c2d3072b32919580b9cd1f0 100644 (file)
@@ -140,11 +140,8 @@ int sctp_clear_pd(struct sock *sk, struct sctp_association *asoc)
                 * we can go ahead and clear out the lobby in one shot
                 */
                if (!skb_queue_empty(&sp->pd_lobby)) {
-                       struct list_head *list;
                        skb_queue_splice_tail_init(&sp->pd_lobby,
                                                   &sk->sk_receive_queue);
-                       list = (struct list_head *)&sctp_sk(sk)->pd_lobby;
-                       INIT_LIST_HEAD(list);
                        return 1;
                }
        } else {