diff options
author | Björn Gustavsson <[email protected]> | 2015-05-07 15:45:43 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-05-07 15:45:43 +0200 |
commit | f1484e1bd971d75bb232bc4f50d25473e1046e65 (patch) | |
tree | f47c716e75e1d6d6d23d9eec32c9309fa464272e /lib | |
parent | 3966c7fe9ecfcb984d196b3c8f01cfda53545381 (diff) | |
download | otp-f1484e1bd971d75bb232bc4f50d25473e1046e65.tar.gz otp-f1484e1bd971d75bb232bc4f50d25473e1046e65.tar.bz2 otp-f1484e1bd971d75bb232bc4f50d25473e1046e65.zip |
code: Make load_native_code_for_all_loaded/0 comply to spec
7309ff4c38325 introduced a mismatch between
load_native_code_for_all_loaded/0 and its spec. We could just delete
spec, but it is cleaner to ensure that the function always returns
'ok'.
Noticed-by: Tuncer Ayaz
Diffstat (limited to 'lib')
-rw-r--r-- | lib/kernel/src/code.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/kernel/src/code.erl b/lib/kernel/src/code.erl index a8cbdf9667..d73d1ff281 100644 --- a/lib/kernel/src/code.erl +++ b/lib/kernel/src/code.erl @@ -564,7 +564,8 @@ load_native_code_for_all_loaded() -> catch _:_ -> ok - end. + end, + ok. load_all_native(Loaded, ChunkTag) -> catch load_all_native_1(Loaded, ChunkTag). |