diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-10-31 17:23:45 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-10-31 17:23:45 +0100 |
| commit | d4ded2a5054dcef06e76d62ae4affdf9bcd7234b (patch) | |
| tree | 925b57d2823fefe1d30c27b3ab7219cf6d67c1da /src | |
| parent | eca0137f0106b4504acd9ff208ca410dae31b007 (diff) | |
| download | prc-d4ded2a5054dcef06e76d62ae4affdf9bcd7234b.tar.gz | |
call.c: Remove redundant check
Diffstat (limited to 'src')
| -rw-r--r-- | src/prc1/call.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/prc1/call.c b/src/prc1/call.c index 176e1f3..41dde47 100644 --- a/src/prc1/call.c +++ b/src/prc1/call.c @@ -98,12 +98,7 @@ static int endcall(const struct lex *l, struct prv *p) const struct tk *tk = c->id->tk; size_t n = c->nparams; - if (!pr) - { - errloc(p->stk - 1, "incomplete \"call\" statement"); - return -1; - } - else if (c->using && !n) + if (c->using && !n) { errloc(c->using, "\"using\" without arguments"); return -1; |
