usb: use BUG_ON() instead of BUG()
Replace BUG() with BUG_ON(). Caught by coccinelle. Signed-off-by: Geyslan G. Bem <geyslan@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2d80b52efe
commit
debe26af03
|
@ -394,8 +394,7 @@ static void ehci_quiesce(struct oxu_hcd *oxu)
|
||||||
u32 temp;
|
u32 temp;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if (!HC_IS_RUNNING(oxu_to_hcd(oxu)->state))
|
BUG_ON(!HC_IS_RUNNING(oxu_to_hcd(oxu)->state));
|
||||||
BUG();
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* wait for any schedule enables/disables to take effect */
|
/* wait for any schedule enables/disables to take effect */
|
||||||
|
@ -1709,9 +1708,8 @@ static void start_unlink_async(struct oxu_hcd *oxu, struct ehci_qh *qh)
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
assert_spin_locked(&oxu->lock);
|
assert_spin_locked(&oxu->lock);
|
||||||
if (oxu->reclaim || (qh->qh_state != QH_STATE_LINKED
|
BUG_ON(oxu->reclaim || (qh->qh_state != QH_STATE_LINKED
|
||||||
&& qh->qh_state != QH_STATE_UNLINK_WAIT))
|
&& qh->qh_state != QH_STATE_UNLINK_WAIT));
|
||||||
BUG();
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* stop async schedule right now? */
|
/* stop async schedule right now? */
|
||||||
|
|
Loading…
Reference in a new issue