Don't lock in the generic grab just to lock again in the specific grabs.

(I committed the wrong version of uart_core.c, which still had this).

Pointy hat: imp
This commit is contained in:
imp 2014-01-20 17:45:36 +00:00
parent ba5bbb1d2a
commit 39f46280d5

View File

@ -629,18 +629,14 @@ void
uart_grab(struct uart_devinfo *di)
{
uart_lock(di->hwmtx);
if (di->sc)
UART_GRAB(di->sc);
uart_unlock(di->hwmtx);
}
void
uart_ungrab(struct uart_devinfo *di)
{
uart_lock(di->hwmtx);
if (di->sc)
UART_UNGRAB(di->sc);
uart_unlock(di->hwmtx);
}