From: David Wagner Date: Fri, 13 Jan 2012 13:27:39 +0000 (+0000) Subject: mkenvimage: Don't try to detect comments in the input file X-Git-Tag: v2012.04-rc1~17^2^2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dc6449a9d8c27899b9bbdaaf49d1535f7a41fd8e;p=u-boot mkenvimage: Don't try to detect comments in the input file Remove this feature since it seems impossible to reliably detect them. Signed-off-by: David Wagner Acked-by: Mike Frysinger --- diff --git a/tools/mkenvimage.c b/tools/mkenvimage.c index 4169004aab..3a20b23ed1 100644 --- a/tools/mkenvimage.c +++ b/tools/mkenvimage.c @@ -258,14 +258,6 @@ int main(int argc, char **argv) /* End of a variable */ envptr[ep++] = '\0'; } - } else if (filebuf[fp] == '#') { - if (fp != 0 && filebuf[fp-1] == '\n') { - /* This line is a comment, let's skip it */ - while (fp < txt_file_stat.st_size && fp++ && - filebuf[fp] != '\n'); - } else { - envptr[ep++] = filebuf[fp]; - } } else { envptr[ep++] = filebuf[fp]; }