mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
c9341dd343
commit
138277120c
1 changed files with 0 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue