mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
net/smc911x: fix return from smc911x_send
return value of smc911x_send is ignored, but on sucesseful send we need return 0 and or error -ETIMEOUT, not opposite. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -403,7 +403,7 @@ static int smc911x_send(struct udevice *dev, void *packet, int length)
|
||||
|
||||
ret = smc911x_send_common(priv, packet, length);
|
||||
|
||||
return ret ? 0 : -ETIMEDOUT;
|
||||
return ret ? -ETIMEDOUT : 0;
|
||||
}
|
||||
|
||||
static int smc911x_recv(struct udevice *dev, int flags, uchar **packetp)
|
||||
|
||||
Reference in New Issue
Block a user