diff options
author | Sverker Eriksson <[email protected]> | 2016-12-21 17:43:28 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2017-01-12 16:09:33 +0100 |
commit | 10ace079fb6d0d626a16a5c6726c6bb8e6bb3878 (patch) | |
tree | 724cce952ed5f3e1122c31577fad82d3ba2bba73 /erts/emulator | |
parent | 9e9e7bf64fa97663dd4fb645c014880205fb46db (diff) | |
download | otp-10ace079fb6d0d626a16a5c6726c6bb8e6bb3878.tar.gz otp-10ace079fb6d0d626a16a5c6726c6bb8e6bb3878.tar.bz2 otp-10ace079fb6d0d626a16a5c6726c6bb8e6bb3878.zip |
erts: Cleanup enif_make_reverse_list
Diffstat (limited to 'erts/emulator')
-rw-r--r-- | erts/emulator/beam/erl_nif.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/erts/emulator/beam/erl_nif.c b/erts/emulator/beam/erl_nif.c index 10514f6b3f..cd44eb880e 100644 --- a/erts/emulator/beam/erl_nif.c +++ b/erts/emulator/beam/erl_nif.c @@ -1724,13 +1724,9 @@ void enif_system_info(ErlNifSysInfo *sip, size_t si_size) driver_system_info(sip, si_size); } -int enif_make_reverse_list(ErlNifEnv* env, ERL_NIF_TERM term, ERL_NIF_TERM *list) { - Eterm *listptr, ret = NIL, *hp; - - if (is_nil(term)) { - *list = term; - return 1; - } +int enif_make_reverse_list(ErlNifEnv* env, ERL_NIF_TERM term, ERL_NIF_TERM *list) +{ + Eterm *listptr, ret, *hp; ret = NIL; |