From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Wagner Date: Wed, 23 Nov 2011 21:28:16 +0100 Subject: [U-Boot] [PATCH 7/9] mkenvimage: Don't try to detect comments in the input file In-Reply-To: <1322080098-3151-1-git-send-email-david.wagner@free-electrons.com> References: <1322080098-3151-1-git-send-email-david.wagner@free-electrons.com> Message-ID: <1322080098-3151-8-git-send-email-david.wagner@free-electrons.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Remove this feature since it seems impossible to reliably detect them. Signed-off-by: David Wagner --- tools/mkenvimage.c | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/tools/mkenvimage.c b/tools/mkenvimage.c index 74b296e..8d84c85 100644 --- a/tools/mkenvimage.c +++ b/tools/mkenvimage.c @@ -230,14 +230,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]; } -- 1.7.7.3