From 549063f4209c3577f255b9348a017c67ce2fb857 Mon Sep 17 00:00:00 2001 From: Paul Guyot Date: Sat, 7 Dec 2024 23:14:36 +0100 Subject: [PATCH] Remove unnecessary argc check Signed-off-by: Paul Guyot --- src/libAtomVM/nifs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libAtomVM/nifs.c b/src/libAtomVM/nifs.c index a4fa6804f..f5c70ce24 100644 --- a/src/libAtomVM/nifs.c +++ b/src/libAtomVM/nifs.c @@ -3003,9 +3003,7 @@ static term nif_erlang_binary_to_term(Context *ctx, int argc, term argv[]) static term nif_erlang_term_to_binary(Context *ctx, int argc, term argv[]) { - if (argc != 1) { - RAISE_ERROR(BADARG_ATOM); - } + UNUSED(argc); term t = argv[0]; term ret = externalterm_to_binary(ctx, t); if (term_is_invalid_term(ret)) {