mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
labels: Shrink declare_label
No need to pass unused 'created', find_label can handle nil here. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
5ce549c354
commit
a8e3d6a836
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user