Remove lockless check in devopen, while correct it does not make much sense.

Suggested by:	imp
MFC after:	6 days
This commit is contained in:
mjg 2014-03-25 23:13:46 +00:00
parent c690e3d26e
commit 47c4497087

View File

@ -421,8 +421,6 @@ static int
devopen(struct cdev *dev, int oflags, int devtype, struct thread *td)
{
if (devsoftc.inuse)
return (EBUSY);
mtx_lock(&devsoftc.mtx);
if (devsoftc.inuse) {
mtx_unlock(&devsoftc.mtx);