ash: save a few bytes in code to parse case statements

Based on commit 49b82fc from git://git.kernel.org/pub/scm/utils/dash/dash.git
by Herbert Xu.

function                                             old     new   delta
parse_command                                       1563    1555      -8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-8)               Total: -8 bytes

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Ron Yorston 2015-08-03 13:46:25 +01:00 committed by Denys Vlasenko
parent ab80e01cd9
commit 383b885ff7

View File

@ -10959,10 +10959,8 @@ parse_command(void)
/*n2->narg.next = NULL; - stzalloc did it */ /*n2->narg.next = NULL; - stzalloc did it */
n2->narg.text = wordtext; n2->narg.text = wordtext;
n2->narg.backquote = backquotelist; n2->narg.backquote = backquotelist;
do { checkkwd = CHKNL | CHKKWD | CHKALIAS;
checkkwd = CHKKWD | CHKALIAS; if (readtoken() != TIN)
} while (readtoken() == TNL);
if (lasttoken != TIN)
raise_error_unexpected_syntax(TIN); raise_error_unexpected_syntax(TIN);
cpp = &n1->ncase.cases; cpp = &n1->ncase.cases;
next_case: next_case: