Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8192e: Fix log spamming in rtl8192_hard_data_xmit

This patch fixes issue generated by commit ca93dcba3a92
("staging: rtl8192e: Remove assert() macro")

One negation was missed in conversion, therefore
asserted message was always printed.
For 1MB file downloaded via http, ~500 messages
were generated.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Mateusz Kulikowski and committed by
Greg Kroah-Hartman
435009bb bda9e249

+2 -2
+2 -2
drivers/staging/rtl8192e/rtl8192e/rtl_core.c
··· 1642 1642 return; 1643 1643 } 1644 1644 1645 - if (queue_index != TXCMD_QUEUE) 1646 - netdev_warn(dev, "%s(): queue index != TXCMD_QUEUE\n", 1645 + if (queue_index == TXCMD_QUEUE) 1646 + netdev_warn(dev, "%s(): queue index == TXCMD_QUEUE\n", 1647 1647 __func__); 1648 1648 1649 1649 memcpy((unsigned char *)(skb->cb), &dev, sizeof(dev));