Mercurial > hg > dmlib
changeset 2186:dc8a443accdf
Simplify fmtDrazLaceGetLaceType() as the buffer can't be NULL.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 12 Jun 2019 21:30:58 +0300 |
parents | 6ba6ca5632d2 |
children | ec47c60d26e2 |
files | tools/lib64fmts.c |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/lib64fmts.c Wed Jun 12 21:30:09 2019 +0300 +++ b/tools/lib64fmts.c Wed Jun 12 21:30:58 2019 +0300 @@ -395,11 +395,7 @@ { (void) fmt; - if (buf != NULL) - img->laceType = buf->data[op->offs] ? D64_ILACE_RES : D64_ILACE_COLOR; - else - img->laceType = D64_ILACE_RES; - + img->laceType = buf->data[op->offs] ? D64_ILACE_RES : D64_ILACE_COLOR; return DMERR_OK; }