Skip to content

Commit

Permalink
scripts: remove unused argument 'type'
Browse files Browse the repository at this point in the history
Remove unused function argument, and there is
no logic changes.

Signed-off-by: Zeng Heng <zengheng4@huawei.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
  • Loading branch information
Zeng Heng authored and Masahiro Yamada committed Sep 28, 2022
1 parent efc8338 commit a8d5692
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/asn1_compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ static void parse(void)

static struct element *element_list;

static struct element *alloc_elem(struct token *type)
static struct element *alloc_elem(void)
{
struct element *e = calloc(1, sizeof(*e));
if (!e) {
Expand Down Expand Up @@ -860,7 +860,7 @@ static struct element *parse_type(struct token **_cursor, struct token *end,
char *p;
int labelled = 0, implicit = 0;

top = element = alloc_elem(cursor);
top = element = alloc_elem();
element->class = ASN1_UNIV;
element->method = ASN1_PRIM;
element->tag = token_to_tag[cursor->token_type];
Expand Down Expand Up @@ -939,7 +939,7 @@ static struct element *parse_type(struct token **_cursor, struct token *end,
if (!implicit)
element->method |= ASN1_CONS;
element->compound = implicit ? TAG_OVERRIDE : SEQUENCE;
element->children = alloc_elem(cursor);
element->children = alloc_elem();
element = element->children;
element->class = ASN1_UNIV;
element->method = ASN1_PRIM;
Expand Down

0 comments on commit a8d5692

Please sign in to comment.