Commit 6befa2af authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo Committed by Arnaldo Carvalho de Melo

o LLC: remove unused list_head from llc_opt & use rw_lock_init for rwlocks

parent 44bb970a
......@@ -21,7 +21,6 @@ struct llc_timer {
};
struct llc_opt {
struct list_head node; /* entry in sap->sk_list.list */
struct sock *sk; /* sock that has this llc_opt */
struct sockaddr_llc addr; /* address sock is bound to */
u8 state; /* state of connection */
......
......@@ -70,7 +70,7 @@ struct llc_sap *llc_sap_alloc(void)
memset(sap, 0, sizeof(*sap));
sap->state = LLC_SAP_STATE_ACTIVE;
memcpy(sap->laddr.mac, llc_main_station.mac_sa, ETH_ALEN);
spin_lock_init(&sap->sk_list.lock);
rwlock_init(&sap->sk_list.lock);
}
return sap;
}
......@@ -639,7 +639,7 @@ static int __init llc_init(void)
printk(llc_banner);
INIT_LIST_HEAD(&llc_main_station.sap_list.list);
spin_lock_init(&llc_main_station.sap_list.lock);
rwlock_init(&llc_main_station.sap_list.lock);
skb_queue_head_init(&llc_main_station.mac_pdu_q);
skb_queue_head_init(&llc_main_station.ev_q.list);
spin_lock_init(&llc_main_station.ev_q.lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment