mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
ASIX: Simplify condition in rx_fixup()
Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a0295a3b67
commit
bc466e678d
1 changed files with 2 additions and 3 deletions
|
@ -314,10 +314,9 @@ static int asix_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
|
||||||
skb_pull(skb, 4);
|
skb_pull(skb, 4);
|
||||||
|
|
||||||
while (skb->len > 0) {
|
while (skb->len > 0) {
|
||||||
if ((short)(header & 0x0000ffff) !=
|
if ((header & 0xffff) != ((~header >> 16) & 0xffff))
|
||||||
~((short)((header & 0xffff0000) >> 16))) {
|
|
||||||
netdev_err(dev->net, "asix_rx_fixup() Bad Header Length\n");
|
netdev_err(dev->net, "asix_rx_fixup() Bad Header Length\n");
|
||||||
}
|
|
||||||
/* get the packet length */
|
/* get the packet length */
|
||||||
size = (u16) (header & 0x0000ffff);
|
size = (u16) (header & 0x0000ffff);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue