summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorZeng Heng <zengheng4@huawei.com>2022-09-14 20:09:21 +0800
committerMasahiro Yamada <masahiroy@kernel.org>2022-09-29 04:40:16 +0900
commita8d5692659358eba46d3b2f7d96da7c390f41f71 (patch)
tree8e1119bf245cf2da74731d532f6be6d6f70f67e2 /scripts
parentefc8338e3a72baf95294634b48c5f2d80dce1c5c (diff)
downloadlinux-a8d5692659358eba46d3b2f7d96da7c390f41f71.tar.bz2
scripts: remove unused argument 'type'
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/asn1_compiler.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/asn1_compiler.c b/scripts/asn1_compiler.c
index adabd4145264..71d4a7c87900 100644
--- a/scripts/asn1_compiler.c
+++ b/scripts/asn1_compiler.c
@@ -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;