mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-24 03:37:16 +00:00
hidbus(4): Fix wrong assertion of bus
Reviewed by: wulf
Fixes: 4151ac9f12
hidbus(4): Use generic hid methods to ...
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D45496
This commit is contained in:
parent
bed65d85c6
commit
4eb82e65a7
|
@ -604,7 +604,7 @@ hidbus_set_intr(device_t child, hid_intr_t *handler, void *context)
|
|||
static int
|
||||
hidbus_intr_start(device_t bus, device_t child)
|
||||
{
|
||||
MPASS(bus = device_get_parent(child));
|
||||
MPASS(bus == device_get_parent(child));
|
||||
struct hidbus_softc *sc = device_get_softc(bus);
|
||||
struct hidbus_ivars *ivar = device_get_ivars(child);
|
||||
struct hidbus_ivars *tlc;
|
||||
|
@ -630,7 +630,7 @@ hidbus_intr_start(device_t bus, device_t child)
|
|||
static int
|
||||
hidbus_intr_stop(device_t bus, device_t child)
|
||||
{
|
||||
MPASS(bus = device_get_parent(child));
|
||||
MPASS(bus == device_get_parent(child));
|
||||
struct hidbus_softc *sc = device_get_softc(bus);
|
||||
struct hidbus_ivars *ivar = device_get_ivars(child);
|
||||
struct hidbus_ivars *tlc;
|
||||
|
|
Loading…
Reference in a new issue