[NETFILTER]: Use macro for spinlock_t/rwlock_t initializations/definition.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
196433c5b7
commit
181a46a56e
@@ -151,7 +151,7 @@ instance_create(u_int16_t group_num, int pid)
|
||||
goto out_unlock;
|
||||
|
||||
INIT_HLIST_NODE(&inst->hlist);
|
||||
inst->lock = SPIN_LOCK_UNLOCKED;
|
||||
spin_lock_init(&inst->lock);
|
||||
/* needs to be two, since we _put() after creation */
|
||||
atomic_set(&inst->use, 2);
|
||||
|
||||
|
@@ -148,7 +148,7 @@ instance_create(u_int16_t queue_num, int pid)
|
||||
atomic_set(&inst->id_sequence, 0);
|
||||
/* needs to be two, since we _put() after creation */
|
||||
atomic_set(&inst->use, 2);
|
||||
inst->lock = SPIN_LOCK_UNLOCKED;
|
||||
spin_lock_init(&inst->lock);
|
||||
INIT_LIST_HEAD(&inst->queue_list);
|
||||
|
||||
if (!try_module_get(THIS_MODULE))
|
||||
|
Reference in New Issue
Block a user