[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PULL trivial 01/11] aes: Remove unused code (NDEBUG, u16
From: |
Michael Tokarev |
Subject: |
[Qemu-trivial] [PULL trivial 01/11] aes: Remove unused code (NDEBUG, u16) |
Date: |
Sat, 27 Jul 2013 11:33:16 +0400 |
From: Stefan Weil <address@hidden>
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 <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
util/aes.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/util/aes.c b/util/aes.c
index 91e97fa..4b4d88e 100644
--- a/util/aes.c
+++ b/util/aes.c
@@ -30,12 +30,7 @@
#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 */
--
1.7.10.4
- [Qemu-trivial] [PULL trivial 00/11] trivial patches for 2013-07-27, Michael Tokarev, 2013/07/27
- [Qemu-trivial] [PULL trivial 01/11] aes: Remove unused code (NDEBUG, u16),
Michael Tokarev <=
- [Qemu-trivial] [PULL trivial 03/11] hw/9pfs: Fix potential memory leak and avoid reuse of freed memory, Michael Tokarev, 2013/07/27
- [Qemu-trivial] [PULL trivial 04/11] exec: Remove env from list of poisoned names, Michael Tokarev, 2013/07/27
- [Qemu-trivial] [PULL trivial 06/11] PPC: dbdma: macio: Fix format specifiers (build regression), Michael Tokarev, 2013/07/27
- [Qemu-trivial] [PULL trivial 07/11] linux-user: correct argument number for sys_mremap and sys_splice, Michael Tokarev, 2013/07/27
- [Qemu-trivial] [PULL trivial 02/11] timer: make timers_state static, Michael Tokarev, 2013/07/27
- [Qemu-trivial] [PULL trivial 05/11] watchdog: Remove break after exit, Michael Tokarev, 2013/07/27
- [Qemu-trivial] [PULL trivial 09/11] qemu-options: mention C-a h in the -nographic doc, Michael Tokarev, 2013/07/27
- [Qemu-trivial] [PULL trivial 08/11] misc: Fix new typos in comments and strings, Michael Tokarev, 2013/07/27
- [Qemu-trivial] [PULL trivial 10/11] misc: Use g_assert_not_reached for code which is expected to be unreachable, Michael Tokarev, 2013/07/27
- [Qemu-trivial] [PULL trivial 11/11] target-mips: Remove assignment to a variable which is never used, Michael Tokarev, 2013/07/27