diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-11-15 11:22:56 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-11-15 11:22:56 +0200 |
commit | 5c2dfe157b48a486eb2b92dcf8789b3b1eb20f60 (patch) | |
tree | 2a16fc9e5ee8fcdc8d78d56de747eacdc4ba7469 /tests/unit_tests | |
parent | Merge pull request #2634 (diff) | |
parent | kaccak: remove unused return value (diff) | |
download | monero-5c2dfe157b48a486eb2b92dcf8789b3b1eb20f60.tar.xz |
Merge pull request #2771
e3e838d0 kaccak: remove unused return value (moneromooo-monero)
4877aca2 keccak: some paranoid "can't happen" checks (moneromooo-monero)
Diffstat (limited to 'tests/unit_tests')
-rw-r--r-- | tests/unit_tests/crypto.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/unit_tests/crypto.cpp b/tests/unit_tests/crypto.cpp index 51e26c2bb..d9a7b8ad5 100644 --- a/tests/unit_tests/crypto.cpp +++ b/tests/unit_tests/crypto.cpp @@ -74,16 +74,12 @@ namespace { size_t inlen = sizeof(source); int mdlen = (int)sizeof(md); - int ret = keccak(source, inlen, md, mdlen); + keccak(source, inlen, md, mdlen); if (md[0] != 0x00) { return true; } - else if (!ret) - { - return true; - } else { return false; |