aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-11-11 11:20:48 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-11-11 11:20:48 +0000
commite3e838d0cfa524f9b4dc90d3a356d5ce26515ddc (patch)
tree8d1e499d6fedf6f4802a9005d16d0a4fc3520b11 /tests/unit_tests
parentkeccak: some paranoid "can't happen" checks (diff)
downloadmonero-e3e838d0cfa524f9b4dc90d3a356d5ce26515ddc.tar.xz
kaccak: remove unused return value
Diffstat (limited to 'tests/unit_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;