9
0
Fork 0

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:
Marek Vasut 2014-01-22 23:50:46 +01:00 committed by Sascha Hauer
parent 27d4fe7a08
commit c827eb8ff3
1 changed files with 1 additions and 1 deletions

View File

@ -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 */