# HG changeset patch # User bartv # Date 1035731046 0 # Node ID b69e341d77cdbf154132f28e606599b54acfe23a # Parent 5cbd0f6d9ced3888930f4011e8ad3b4890a8ebcf Fix expression typo, reported by Andrew Lunn and David Smith diff --git a/packages/devs/usb/nec_upd985xx/current/ChangeLog b/packages/devs/usb/nec_upd985xx/current/ChangeLog --- a/packages/devs/usb/nec_upd985xx/current/ChangeLog +++ b/packages/devs/usb/nec_upd985xx/current/ChangeLog @@ -1,3 +1,9 @@ +2002-10-26 Bart Veer + + * src/usbs_upd985xx.c (ep0_rx_dsr): + Fix typo in expression, reported by Andrew Lunn. The system's + behaviour should not be affected. + 2001-09-20 Bart Veer * src/usbs_upd985xx.c (ep0_init): diff --git a/packages/devs/usb/nec_upd985xx/current/src/usbs_upd985xx.c b/packages/devs/usb/nec_upd985xx/current/src/usbs_upd985xx.c --- a/packages/devs/usb/nec_upd985xx/current/src/usbs_upd985xx.c +++ b/packages/devs/usb/nec_upd985xx/current/src/usbs_upd985xx.c @@ -1243,7 +1243,7 @@ ep0_rx_dsr(void) // If we have received a control packet then any reset signals really // will have come from the host and must be processed normally. // Make sure that reset interrupts are no longer masked off. - if (0 == (*USBS_IMR2 * IBUS_SWAP32(USBS_GSR2_URST))) { + if (0 == (*USBS_IMR2 & IBUS_SWAP32(USBS_GSR2_URST))) { *USBS_IMR2 |= IBUS_SWAP32(USBS_GSR2_URST); FLUSH_IBUS(); usbs_upd985xx_gsr2_mask |= USBS_GSR2_URST; }