diff --git a/binfmt/libelf/libelf_coredump.c b/binfmt/libelf/libelf_coredump.c index e8eb84bf95..2771d2f852 100644 --- a/binfmt/libelf/libelf_coredump.c +++ b/binfmt/libelf/libelf_coredump.c @@ -43,7 +43,6 @@ ****************************************************************************/ #define ELF_PAGESIZE 4096 -#define ELF_BLOCKSIZE 1024 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) #define ROUNDUP(x, y) ((x + (y - 1)) / (y)) * (y) @@ -82,8 +81,7 @@ static int elf_emit(FAR struct elf_dumpinfo_s *cinfo, while (total > 0) { - ret = cinfo->stream->puts(cinfo->stream, ptr, total > ELF_BLOCKSIZE ? - ELF_BLOCKSIZE : total); + ret = cinfo->stream->puts(cinfo->stream, ptr, total); if (ret < 0) { break;