Skip to contentSkip to conversation

ath11k: fix bugon.cocci warnings

PATCH Applied Julia Lawall 2 participants 2 messages Mar 7, 2019 – Mar 8, 2019

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath11k: fix bugon.cocci warnings

From: kbuild test robot <[email protected]>

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 <[email protected]>

---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git ath11k-bringup
head:   e7daa3ec639f390e383dae0db9e6b143bcc7b5bc
commit: c105b7abf400972ee661efe18b4ca11adfd137cd [28/42] ath11k: collect DDR dump after fw crash

:::::: branch date: 5 hours ago
:::::: commit date: 5 hours ago

Please take the patch only if it's a positive warning. Thanks!

 ahb.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/wireless/ath/ath11k/ahb.c +1 -2
@@ -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;

_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k

Applied
#1 lore raw
Quoted 10 lines · Julia Lawall

From: kbuild test robot <[email protected]>

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 <[email protected]>

Applied, thanks.

Signature · 6 lines
Kalle Valo

_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k