Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc466e67 authored by Marek Vasut's avatar Marek Vasut Committed by David S. Miller
Browse files

ASIX: Simplify condition in rx_fixup()

parent a0295a3b
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -314,10 +314,9 @@ static int asix_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
	skb_pull(skb, 4);

	while (skb->len > 0) {
		if ((short)(header & 0x0000ffff) !=
		    ~((short)((header & 0xffff0000) >> 16))) {
		if ((header & 0xffff) != ((~header >> 16) & 0xffff))
			netdev_err(dev->net, "asix_rx_fixup() Bad Header Length\n");
		}

		/* get the packet length */
		size = (u16) (header & 0x0000ffff);