net: Fix error handling in sb_eth_raw_ofdata_to_platdata()
authorSimon Glass <sjg@chromium.org>
Mon, 7 Jan 2019 23:44:22 +0000 (16:44 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 15 Jan 2019 00:47:13 +0000 (17:47 -0700)
commit8405452e6abab07cf445ba307b3ca58d39a097ba
treeff2053b20ff874c686e46b7175d1d1749b09da25
parente9500f49ea350b14973bdacd9948f9c2177ff2a8
net: Fix error handling in sb_eth_raw_ofdata_to_platdata()

At present this stores the error number in an unsigned int so an error is
never detected. Use the existing signed variable instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/sandbox-raw.c