Message ID | alpine.DEB.2.21.1903072247110.2558@hadrien (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | ath11k: fix bugon.cocci warnings | expand |
Julia Lawall <julia.lawall@lip6.fr> writes: > From: kbuild test robot <lkp@intel.com> > > Use BUG_ON instead of if condition followed by BUG. > > Generated by: scripts/coccinelle/misc/bugon.cocci > > Fixes: c105b7abf400 ("ath11k: collect DDR dump after fw crash") > CC: Venkateswara Naralasetty <vnaralas@codeaurora.org> > Signed-off-by: kbuild test robot <lkp@intel.com> > Signed-off-by: Julia Lawall <julia.lawall@lip6.fr> Applied, thanks.
--- a/drivers/net/wireless/ath/ath11k/ahb.c +++ b/drivers/net/wireless/ath/ath11k/ahb.c @@ -954,8 +954,7 @@ static int ath11k_subsys_notifier_cb(str sc->target_restarted = 0; break; case SUBSYS_BEFORE_POWERUP: - if (sc->target_restarted) - BUG(); + BUG_ON(sc->target_restarted); break; default: return NOTIFY_OK;