]> git.baikalelectronics.ru Git - uboot.git/commit
net: usb: mcs7830: fix non-DM ingress path
authorUri Mashiach <uri.mashiach@compulab.co.il>
Sun, 21 May 2017 14:00:52 +0000 (17:00 +0300)
committerMarek Vasut <marex@denx.de>
Sun, 21 May 2017 14:44:04 +0000 (16:44 +0200)
commit828c18aa90c43e9f1f0794acbf7e1c6c5e34bfb1
tree24a60f9e65467506d616fb22f2f5effe05e388f4
parenta5d0c303d492f289fa7e1c9890aa729cbec177f0
net: usb: mcs7830: fix non-DM ingress path

The mcs7830_recv() (non-DM) function discards good packets and tries to
process "bad" packets due to incorrect test condition.
Fix the condition and return the proper value as described in function
doc.

Signed-off-by: Uri Mashiach <uri.mashiach@compulab.co.il>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
drivers/usb/eth/mcs7830.c