summaryrefslogtreecommitdiff
path: root/common/image.c
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-12-11 22:16:22 -0600
committerTom Rini <trini@ti.com>2012-12-13 11:46:55 -0700
commitec8a252cd492a7a409d6912aebeff34bb9e1e1e1 (patch)
tree346bb7bedd1dfe13f531725e7e0edaa2d80df1a8 /common/image.c
parent7afcf3a55b5f484b3d3442053fae8186a3fb92d7 (diff)
downloadu-boot-imx-ec8a252cd492a7a409d6912aebeff34bb9e1e1e1.zip
u-boot-imx-ec8a252cd492a7a409d6912aebeff34bb9e1e1e1.tar.gz
u-boot-imx-ec8a252cd492a7a409d6912aebeff34bb9e1e1e1.tar.bz2
env: Use getenv_yesno() more generally
Move the getenv_yesno() to env_common.c and change most checks for 'y' or 'n' to use this helper. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'common/image.c')
-rw-r--r--common/image.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/common/image.c b/common/image.c
index e93b6e8..69e888c 100644
--- a/common/image.c
+++ b/common/image.c
@@ -416,12 +416,6 @@ static const image_header_t *image_get_ramdisk(ulong rd_addr, uint8_t arch,
/* Shared dual-format routines */
/*****************************************************************************/
#ifndef USE_HOSTCC
-int getenv_yesno(char *var)
-{
- char *s = getenv(var);
- return (s && (*s == 'n')) ? 0 : 1;
-}
-
ulong getenv_bootm_low(void)
{
char *s = getenv("bootm_low");