net: Change return codes from net/eth.c to use errorno constants
authorJoe Hershberger <joe.hershberger@ni.com>
Sun, 22 Mar 2015 22:09:04 +0000 (17:09 -0500)
committerSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2015 17:11:11 +0000 (11:11 -0600)
commit05324a488b09c57e7bcc70ae528cd7c098c3e3d3
tree19db2fc3fb8e066f95a48bc2aca03400290d4a9a
parent84eb1fba7b50aea7807c85258ced2c2be7dca18f
net: Change return codes from net/eth.c to use errorno constants

Many functions returned -1 previously. Change them to return appropriate error
codes.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reported-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
net/eth.c