]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
b43legacy: Remove pointless cond_resched() wrapper
authorThomas Gleixner <tglx@linutronix.de>
Fri, 2 Aug 2019 11:58:40 +0000 (13:58 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 6 Aug 2019 12:43:50 +0000 (15:43 +0300)
commit6004cf298a4180199dc40bc40466126df8a5a88c
tree51296c805128ab6223ed85f8ff3a1b48cfbc8748
parent654026df2635863fd695b2ca833e5c62454bd5ee
b43legacy: Remove pointless cond_resched() wrapper

cond_resched() can be used unconditionally. If CONFIG_PREEMPT is set, it
becomes a NOP scheduler wise.

Also the B43_BUG_ON() in that wrapper is a homebrewn variant of
__might_sleep() which is part of cond_resched() already.

Remove the cruft and invoke cond_resched() directly.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Larry Finger <Larry.Finger@lwfinger.net>
Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/b43legacy/phy.c