Commit 4d27de14 authored by's avatar Committed by David S. Miller

6lowpan: revert: add missing spin_lock_init()

Revert the commit 768f7c7c to initialize
spinlock in the more preferable way and make it static to avoid sparse
Signed-off-by: default avatarAlexander Smirnov <>
Signed-off-by: default avatarDavid S. Miller <>
parent d348446b
......@@ -123,7 +123,7 @@ struct lowpan_fragment {
static unsigned short fragment_tag;
static LIST_HEAD(lowpan_fragments);
spinlock_t flist_lock;
static DEFINE_SPINLOCK(flist_lock);
static inline struct
lowpan_dev_info *lowpan_dev_info(const struct net_device *dev)
......@@ -1186,8 +1186,6 @@ static int lowpan_newlink(struct net *src_net, struct net_device *dev,
list_add_tail(&entry->list, &lowpan_devices);
return 0;
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