Commit 77c0e745 authored by Denis Efremov's avatar Denis Efremov Committed by Linus Torvalds

wimax/i2400m: remove unlikely() from WARN*() condition

"unlikely(WARN_ON(x))" is excessive. WARN_ON() already uses unlikely()
internally.

Link: http://lkml.kernel.org/r/20190829165025.15750-6-efremov@linux.comSigned-off-by: default avatarDenis Efremov <efremov@linux.com>
Cc: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7159d544
...@@ -654,8 +654,7 @@ void i2400m_tx_close(struct i2400m *i2400m) ...@@ -654,8 +654,7 @@ void i2400m_tx_close(struct i2400m *i2400m)
padding = aligned_size - tx_msg_moved->size; padding = aligned_size - tx_msg_moved->size;
if (padding > 0) { if (padding > 0) {
pad_buf = i2400m_tx_fifo_push(i2400m, padding, 0, 0); pad_buf = i2400m_tx_fifo_push(i2400m, padding, 0, 0);
if (unlikely(WARN_ON(pad_buf == NULL if (WARN_ON(pad_buf == NULL || pad_buf == TAIL_FULL)) {
|| pad_buf == TAIL_FULL))) {
/* This should not happen -- append should verify /* This should not happen -- append should verify
* there is always space left at least to append * there is always space left at least to append
* tx_block_size */ * tx_block_size */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment