Skip to content

Commit a8d5692

Browse files
henryZemasahir0y
authored andcommitted
scripts: remove unused argument 'type'
Remove unused function argument, and there is no logic changes. Signed-off-by: Zeng Heng <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent efc8338 commit a8d5692

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/asn1_compiler.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ static void parse(void)
832832

833833
static struct element *element_list;
834834

835-
static struct element *alloc_elem(struct token *type)
835+
static struct element *alloc_elem(void)
836836
{
837837
struct element *e = calloc(1, sizeof(*e));
838838
if (!e) {
@@ -860,7 +860,7 @@ static struct element *parse_type(struct token **_cursor, struct token *end,
860860
char *p;
861861
int labelled = 0, implicit = 0;
862862

863-
top = element = alloc_elem(cursor);
863+
top = element = alloc_elem();
864864
element->class = ASN1_UNIV;
865865
element->method = ASN1_PRIM;
866866
element->tag = token_to_tag[cursor->token_type];
@@ -939,7 +939,7 @@ static struct element *parse_type(struct token **_cursor, struct token *end,
939939
if (!implicit)
940940
element->method |= ASN1_CONS;
941941
element->compound = implicit ? TAG_OVERRIDE : SEQUENCE;
942-
element->children = alloc_elem(cursor);
942+
element->children = alloc_elem();
943943
element = element->children;
944944
element->class = ASN1_UNIV;
945945
element->method = ASN1_PRIM;

0 commit comments

Comments
 (0)