Correct syntax errors that only show up when compiled with INVARIANTS.
This commit is contained in:
parent
b156d221c9
commit
392a8e4408
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=302502
@ -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 New Issue
Block a user