Mercurial > hg > dmlib
changeset 2448:cd5805f392a9
Remove useless else and block.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 15 Apr 2020 13:29:50 +0300 |
parents | b0f25a42fd23 |
children | ff639208aae6 |
files | tools/gfxconv.c |
diffstat | 1 files changed, 6 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/gfxconv.c Wed Apr 15 13:29:28 2020 +0300 +++ b/tools/gfxconv.c Wed Apr 15 13:29:50 2020 +0300 @@ -571,15 +571,13 @@ { if (!dmParseMapOptionMapItem(line, &values[*nvalue], nmax, "mapping file")) goto error; - else + + (*nvalue)++; + if (*nvalue >= nmax) { - (*nvalue)++; - if (*nvalue >= nmax) - { - dmErrorMsg("Too many mapping pairs in '%s', maximum is %d.\n", - filename, nmax); - goto error; - } + dmErrorMsg("Too many mapping pairs in '%s', maximum is %d.\n", + filename, nmax); + goto error; } } }