]> git.proxmox.com Git - qemu.git/commitdiff
aes: Remove unused code (NDEBUG, u16)
authorStefan Weil <sw@weilnetz.de>
Sat, 29 Jun 2013 15:10:48 +0000 (15:10 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 27 Jul 2013 07:22:53 +0000 (11:22 +0400)
The current code includes assert.h very early (from qemu-common.h),
so the definition of NDEBUG was without any effect.

In the initial version from 2004, NDEBUG was used to disable the assertions.
Those assertions are not in time critical code, so it is no longer
reasonable to disable them and the definition of NDEBUG can be removed.

Type u16 is also unused and therefore does not need a type definition.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
util/aes.c

index 91e97fa6e7f414733742296873616f30fd04a630..4b4d88e7e61f0a19b64dc100136fa6cb22cdc0dc 100644 (file)
 #include "qemu-common.h"
 #include "qemu/aes.h"
 
-#ifndef NDEBUG
-#define NDEBUG
-#endif
-
 typedef uint32_t u32;
-typedef uint16_t u16;
 typedef uint8_t u8;
 
 /* This controls loop-unrolling in aes_core.c */