Commit b89f2fa6 authored by Margit Schubert-While's avatar Margit Schubert-While Committed by Stephen Hemminger

[PATCH] prism54 fix unlikely

2004-06-28 Margit Schubert-While <margitsw@t-online.de>

* Fix a thinko by me
parent 378ef21b
...@@ -121,7 +121,7 @@ islpci_eth_transmit(struct sk_buff *skb, struct net_device *ndev) ...@@ -121,7 +121,7 @@ islpci_eth_transmit(struct sk_buff *skb, struct net_device *ndev)
/* Check alignment and WDS frame formatting. The start of the packet should /* Check alignment and WDS frame formatting. The start of the packet should
* be aligned on a 4-byte boundary. If WDS is enabled add another 6 bytes * be aligned on a 4-byte boundary. If WDS is enabled add another 6 bytes
* and add WDS address information */ * and add WDS address information */
if (unlikely(((long) skb->data & 0x03) | init_wds)) { if (likely(((long) skb->data & 0x03) | init_wds)) {
/* get the number of bytes to add and re-allign */ /* get the number of bytes to add and re-allign */
offset = (4 - (long) skb->data) & 0x03; offset = (4 - (long) skb->data) & 0x03;
offset += init_wds ? 6 : 0; offset += init_wds ? 6 : 0;
......
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