net usb asix: Simplify condition in rx_fixup()
Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
27d4fe7a08
commit
c827eb8ff3
|
@ -408,7 +408,7 @@ static int asix_rx_fixup(struct usbnet *dev, void *buf, int len)
|
|||
len -= 4;
|
||||
|
||||
while (len > 0) {
|
||||
if ((short)(header & 0x0000ffff) != ~((short)((header & 0xffff0000) >> 16)))
|
||||
if ((header & 0xffff) != ((~header >> 16) & 0xffff))
|
||||
dev_err(&dev->edev.dev, "asix_rx_fixup() Bad Header Length\n");
|
||||
|
||||
/* get the packet length */
|
||||
|
|
Loading…
Reference in New Issue