staging: rtl8192e: Fix log spamming in rtl8192_hard_data_xmit
PATCH 1/1 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.
---
Notes:
This patch (probably) doesn't have to be applied urgently. Modern distros are not outputting kernel log to console, so even though driver would spam dmesg, it should not cause performance drawbacks.
Target tested and verified that performance in fact improves, at least on my configuration (logs are printed on console and via netconsole).
Sorry I didn't catch that earlier - either during original submission or later on - I didn't checked transmission speeds as my area has some heavy wifi pollution.
drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8192e/rtl8192e/rtl_core.c +2 -2
@@ -1642,8 +1642,8 @@ static void rtl8192_hard_data_xmit(struct sk_buff *skb, struct net_device *dev,return ; } -if (queue_index !=TXCMD_QUEUE ) -netdev_warn (dev,"%s(): queue index != TXCMD_QUEUE\n" , +if (queue_index ==TXCMD_QUEUE ) +netdev_warn (dev,"%s(): queue index == TXCMD_QUEUE\n" , __func__);memcpy ((unsigned char *)(skb->cb), &dev,sizeof (dev));
Signature · 1 line
1.8.4.1