Browse Source

Remove dead code in util.c

xrealloc never returns null

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
main
Heinrich Schuchardt 11 years ago committed by David Gibson
parent
commit
821acd4c17
  1. 4
      util.c

4
util.c

@ -219,10 +219,6 @@ int utilfdt_read_err_len(const char *filename, char **buffp, off_t *len) @@ -219,10 +219,6 @@ int utilfdt_read_err_len(const char *filename, char **buffp, off_t *len)
if (offset == bufsize) {
bufsize *= 2;
buf = xrealloc(buf, bufsize);
if (!buf) {
ret = ENOMEM;
break;
}
}

ret = read(fd, &buf[offset], bufsize - offset);

Loading…
Cancel
Save