net: Ppp_async: semaphore cleanup
Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Christoph Hellwig <hch@infradead.org> Acked-by: David Miller <davem@davemloft.net> LKML-Reference: <20100907125055.460765783@linutronix.de>
This commit is contained in:
@ -184,7 +184,7 @@ ppp_asynctty_open(struct tty_struct *tty)
|
|||||||
tasklet_init(&ap->tsk, ppp_async_process, (unsigned long) ap);
|
tasklet_init(&ap->tsk, ppp_async_process, (unsigned long) ap);
|
||||||
|
|
||||||
atomic_set(&ap->refcnt, 1);
|
atomic_set(&ap->refcnt, 1);
|
||||||
init_MUTEX_LOCKED(&ap->dead_sem);
|
sema_init(&ap->dead_sem, 0);
|
||||||
|
|
||||||
ap->chan.private = ap;
|
ap->chan.private = ap;
|
||||||
ap->chan.ops = &async_ops;
|
ap->chan.ops = &async_ops;
|
||||||
|
Reference in New Issue
Block a user