hush: refactor reserved_word()
Save indentation level for easier readability. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
b763f01728
commit
f5923be4c6
|
@ -1201,7 +1201,8 @@ static int reserved_word(o_string *dest, struct p_context *ctx)
|
|||
for (i = 0; i < ARRAY_SIZE(reserved_list); i++) {
|
||||
r = &reserved_list[i];
|
||||
|
||||
if (strcmp(dest->data, r->literal) == 0) {
|
||||
if (strcmp(dest->data, r->literal))
|
||||
continue;
|
||||
|
||||
debug("found reserved word %s, code %d\n",r->literal,r->code);
|
||||
|
||||
|
@ -1247,7 +1248,6 @@ static int reserved_word(o_string *dest, struct p_context *ctx)
|
|||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue