diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2006-01-04 13:56:54 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-01-04 13:56:54 -0800 |
commit | 181a46a56e9f852060c54247209e93740329b6eb (patch) | |
tree | 656f6eaf5e26f17bde97dc74a892e83f68fe1649 /net/netfilter/nfnetlink_queue.c | |
parent | 196433c5b788eb732fdcf92449274e302f089ce4 (diff) | |
download | op-kernel-dev-181a46a56e9f852060c54247209e93740329b6eb.zip op-kernel-dev-181a46a56e9f852060c54247209e93740329b6eb.tar.gz |
[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>
Diffstat (limited to 'net/netfilter/nfnetlink_queue.c')
-rw-r--r-- | net/netfilter/nfnetlink_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c index f28460b6..55afdda 100644 --- a/net/netfilter/nfnetlink_queue.c +++ b/net/netfilter/nfnetlink_queue.c @@ -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)) |