diff options
author | Jim Kukunas <james.t.kukunas@linux.intel.com> | 2014-11-10 10:59:26 -0800 |
---|---|---|
committer | Jim Kukunas <james.t.kukunas@linux.intel.com> | 2014-11-10 11:45:10 -0800 |
commit | e184c0b0cb8c886428975a406f20893696651ede (patch) | |
tree | 595b622a1328ee70abfc15e80afaf65fad0d7be1 | |
parent | e76a6260556d76b756ef56cdd4ca5b41e61259bc (diff) | |
download | nasm-e184c0b0cb8c886428975a406f20893696651ede.tar.gz |
rdoff: don't check fwritezero() return value.
Since e76a6260556d76b756ef56cdd4ca5b41e61259bc, the return type of fwritezero()
is void.
Signed-off-by: Jim Kukunas <james.t.kukunas@linux.intel.com>
-rw-r--r-- | rdoff/rdf2bin.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rdoff/rdf2bin.c b/rdoff/rdf2bin.c index 72e5104b..1e33075c 100644 --- a/rdoff/rdf2bin.c +++ b/rdoff/rdf2bin.c @@ -86,8 +86,7 @@ static int output_bin(FILE *f, void *data, uint32_t bytes, uint32_t where) } pad = (where-origin) - offset; - if (fwritezero(pad, f) != pad) - return -1; + fwritezero(pad, f); offset += pad; if (fwrite(data, 1, bytes, f) != bytes) |