Skip to content

Commit

Permalink
net: Ppp_async: semaphore cleanup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Gleixner committed Oct 12, 2010
1 parent 495e64b commit 0bce198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ppp_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ ppp_asynctty_open(struct tty_struct *tty)
tasklet_init(&ap->tsk, ppp_async_process, (unsigned long) ap);

atomic_set(&ap->refcnt, 1);
init_MUTEX_LOCKED(&ap->dead_sem);
sema_init(&ap->dead_sem, 0);

ap->chan.private = ap;
ap->chan.ops = &async_ops;
Expand Down

0 comments on commit 0bce198

Please sign in to comment.