staging: rtl8192e: Fix log spamming in rtl8192_hard_data_xmit
This patch fixes issue generated by commit ca93dcba3a
("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>
This commit is contained in:
parent
bda9e24909
commit
435009bba4
|
@ -1642,8 +1642,8 @@ static void rtl8192_hard_data_xmit(struct sk_buff *skb, struct net_device *dev,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (queue_index != TXCMD_QUEUE)
|
if (queue_index == TXCMD_QUEUE)
|
||||||
netdev_warn(dev, "%s(): queue index != TXCMD_QUEUE\n",
|
netdev_warn(dev, "%s(): queue index == TXCMD_QUEUE\n",
|
||||||
__func__);
|
__func__);
|
||||||
|
|
||||||
memcpy((unsigned char *)(skb->cb), &dev, sizeof(dev));
|
memcpy((unsigned char *)(skb->cb), &dev, sizeof(dev));
|
||||||
|
|
Loading…
Reference in a new issue