aw_cir: minor cleanups

MFC after:	1 week
This commit is contained in:
Andriy Gapon 2020-08-12 09:52:39 +00:00
parent 012fba460a
commit 8b616b263d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=364147

View File

@ -368,7 +368,7 @@ aw_ir_intr(void *arg)
device_printf(sc->dev, "IR code status: %d\n",
stat);
}
sc->dcnt = 0;
aw_ir_buf_reset(sc);
}
if (val & AW_IR_RXINT_ROI_EN) {
/* RX FIFO overflow */
@ -469,7 +469,8 @@ aw_ir_attach(device_t dev)
&sc->intrhand)) {
bus_release_resources(dev, aw_ir_spec, sc->res);
device_printf(dev, "cannot setup interrupt handler\n");
return (ENXIO);
err = ENXIO;
goto error;
}
/* Enable CIR Mode */