qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 17/46] aes: remove a dead return statement


From: Michael Tokarev
Subject: [Qemu-devel] [PULL 17/46] aes: remove a dead return statement
Date: Tue, 10 Feb 2015 09:34:06 +0300

From: Paolo Bonzini <address@hidden>

bits is checked to be 128, 192 or 256 at the beginning of the function.

Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
 util/aes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util/aes.c b/util/aes.c
index 6058f19..3d7c4be 100644
--- a/util/aes.c
+++ b/util/aes.c
@@ -1161,7 +1161,7 @@ int AES_set_encrypt_key(const unsigned char *userKey, 
const int bits,
                        rk += 8;
                }
        }
-       return 0;
+        abort();
 }
 
 /**
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]