]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - tools/mkenvimage.c
mkenvimage: Don't try to detect comments in the input file
[karo-tx-uboot.git] / tools / mkenvimage.c
index 4169004aabae2a5dbe5b784330a814b1ed102855..3a20b23ed16eb856613b4f571c6c257eb31a4732 100644 (file)
@@ -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];
                }