提交 a8d56926 编写于 作者: Z Zeng Heng 提交者: Masahiro Yamada

scripts: remove unused argument 'type'

Remove unused function argument, and there is
no logic changes.
Signed-off-by: NZeng Heng <zengheng4@huawei.com>
Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
上级 efc8338e
......@@ -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) {
......@@ -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];
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册