Skip to content

Commit

Permalink
staging: rtl8192e: Fix log spamming in rtl8192_hard_data_xmit
Browse files Browse the repository at this point in the history
This patch fixes issue generated by commit ca93dcb
("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 <[email protected]>
Cc: stable <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
hallor authored and gregkh committed Aug 15, 2015
1 parent bda9e24 commit 435009b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/rtl8192e/rtl8192e/rtl_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 435009b

Please sign in to comment.