Received: from eggs.gnu.org ([2001:4830:134:3::10]:40193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2z0N-0001lP-BD for qemu-devel@nongnu.org; Sat, 27 Jul 2013 03:33:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2z0M-0005dW-9N for qemu-devel@nongnu.org; Sat, 27 Jul 2013 03:33:31 -0400 From: Michael Tokarev Date: Sat, 27 Jul 2013 11:33:16 +0400 Message-Id: <1374910406-15273-2-git-send-email-mjt@msgid.tls.msk.ru> In-Reply-To: <1374910406-15273-1-git-send-email-mjt@msgid.tls.msk.ru> References: <1374910406-15273-1-git-send-email-mjt@msgid.tls.msk.ru> Subject: [Qemu-devel] [PULL trivial 01/11] aes: Remove unused code (NDEBUG, u16) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: qemu-trivial@nongnu.org, Stefan Weil , Michael Tokarev , qemu-devel@nongnu.org From: Stefan Weil 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 Signed-off-by: Michael Tokarev --- 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