env: Fix return values in env_attr_lookup()
authorJoe Hershberger <joe.hershberger@ni.com>
Wed, 20 May 2015 19:27:17 +0000 (14:27 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 21 May 2015 13:13:19 +0000 (09:13 -0400)
commit7a0ad2cce3e84fdfb1d0f5b14b9e293cb6e69d71
tree5d08f771fbc40b8ce9730afe92bba0e9d0c0ba64
parent7acdf78108c6ffc1baa55a76d51dc7d4202d1e08
env: Fix return values in env_attr_lookup()

This function returned numbers for error codes. Change them to error
codes.

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