aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-11-15 11:22:56 +0200
committerRiccardo Spagni <ric@spagni.net>2017-11-15 11:22:56 +0200
commit5c2dfe157b48a486eb2b92dcf8789b3b1eb20f60 (patch)
tree2a16fc9e5ee8fcdc8d78d56de747eacdc4ba7469 /tests
parentMerge pull request #2634 (diff)
parentkaccak: remove unused return value (diff)
downloadmonero-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')
-rw-r--r--tests/unit_tests/crypto.cpp6
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;