Commit-ID: a8e3d6a83681a757c4123289b517cf68acd332ee
Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=a8e3d6a83681a757c4123289b517cf68acd332ee
Author: Cyrill Gorcunov <gor...@gm...>
AuthorDate: Sat, 30 Jun 2018 20:02:24 +0300
Committer: Cyrill Gorcunov <gor...@gm...>
CommitDate: Sat, 30 Jun 2018 20:02:24 +0300
labels: Shrink declare_label
No need to pass unused 'created', find_label can
handle nil here.
Signed-off-by: Cyrill Gorcunov <gor...@gm...>
---
asm/labels.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/asm/labels.c b/asm/labels.c
index fbc4396..ab27a61 100644
--- a/asm/labels.c
+++ b/asm/labels.c
@@ -417,10 +417,7 @@ static bool declare_label_lptr(union label *lptr,
bool declare_label(const char *label, enum label_type type, const char *special)
{
- union label *lptr;
- bool created;
-
- lptr = find_label(label, true, &created);
+ union label *lptr = find_label(label, true, NULL);
return declare_label_lptr(lptr, type, special);
}
|