Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89d9f10d authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

hamradio: 6pack: semaphore cleanup



Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Christoph Hellwig <hch@infradead.org>
Acked-by: default avatarDavid Miller <davem@davemloft.net>
LKML-Reference: <20100907125055.269142443@linutronix.de>
parent 50948ee8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -608,7 +608,7 @@ static int sixpack_open(struct tty_struct *tty)

	spin_lock_init(&sp->lock);
	atomic_set(&sp->refcnt, 1);
	init_MUTEX_LOCKED(&sp->dead_sem);
	sema_init(&sp->dead_sem, 0);

	/* !!! length of the buffers. MTU is IP MTU, not PACLEN!  */