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:
Warner Losh 2014-01-20 17:45:36 +00:00
parent c9341dd343
commit 138277120c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=260911

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);
}