mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Correct syntax errors that only show up when compiled with INVARIANTS.
This commit is contained in:
parent
b156d221c9
commit
392a8e4408
2 changed files with 3 additions and 3 deletions
|
|
@ -172,7 +172,7 @@ static void lpe_ifmedia_sts(struct ifnet *, struct ifmediareq *);
|
|||
|
||||
#define lpe_lock(_sc) mtx_lock(&(_sc)->lpe_mtx)
|
||||
#define lpe_unlock(_sc) mtx_unlock(&(_sc)->lpe_mtx)
|
||||
#define lpe_lock_assert(sc) mtx_assert(&(_sc)->lpe_mtx, MA_OWNED)
|
||||
#define lpe_lock_assert(_sc) mtx_assert(&(_sc)->lpe_mtx, MA_OWNED)
|
||||
|
||||
#define lpe_read_4(_sc, _reg) \
|
||||
bus_space_read_4((_sc)->lpe_bst, (_sc)->lpe_bsh, (_reg))
|
||||
|
|
|
|||
|
|
@ -310,7 +310,7 @@ static uint16_t
|
|||
keymap_read(struct ckb_softc *sc, int col, int row)
|
||||
{
|
||||
|
||||
KASSERT(sc->keymap != NULL, "keymap_read: no keymap");
|
||||
KASSERT(sc->keymap != NULL, ("keymap_read: no keymap"));
|
||||
if (col >= 0 && col < sc->cols &&
|
||||
row >= 0 && row < sc->rows) {
|
||||
return sc->keymap[row * sc->cols + col];
|
||||
|
|
@ -323,7 +323,7 @@ static int
|
|||
keymap_write(struct ckb_softc *sc, int col, int row, uint16_t key)
|
||||
{
|
||||
|
||||
KASSERT(sc->keymap != NULL, "keymap_write: no keymap");
|
||||
KASSERT(sc->keymap != NULL, ("keymap_write: no keymap"));
|
||||
if (col >= 0 && col < sc->cols &&
|
||||
row >= 0 && row < sc->rows) {
|
||||
sc->keymap[row * sc->cols + col] = key;
|
||||
|
|
|
|||
Loading…
Reference in a new issue