wireless: remove unnecessary unlikely()
Both WARN_ON() and WARN_ON_ONCE() already contain unlikely(). Signed-off-by: Igor Stoppa <igor.stoppa@huawei.com> Cc: Kalle Valo <kvalo@codeaurora.org> Cc: Christian Lamparter <chunkeey@googlemail.com> Cc: Michal Kazior <michal.kazior@tieto.com> Cc: Larry Finger <Larry.Finger@lwfinger.net> Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org> Cc: Linux Wireless Mailing List <linux-wireless@vger.kernel.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
@@ -1149,7 +1149,7 @@ int b43legacy_dma_tx(struct b43legacy_wldev *dev,
|
||||
return -ENOSPC;
|
||||
}
|
||||
|
||||
if (unlikely(WARN_ON(free_slots(ring) < SLOTS_PER_PACKET))) {
|
||||
if (WARN_ON(free_slots(ring) < SLOTS_PER_PACKET)) {
|
||||
/* If we get here, we have a real error with the queue
|
||||
* full, but queues not stopped. */
|
||||
b43legacyerr(dev->wl, "DMA queue overflow\n");
|
||||
|
Reference in New Issue
Block a user