From patchwork Sat Jul 27 07:33:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 262382 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D19B42C00DE for ; Sat, 27 Jul 2013 17:34:02 +1000 (EST) Received: from localhost ([::1]:35028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2z0o-0001oE-Cq for incoming@patchwork.ozlabs.org; Sat, 27 Jul 2013 03:33:58 -0400 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 Received: from isrv.corpit.ru ([86.62.121.231]:49684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2z0M-0005dA-1k; Sat, 27 Jul 2013 03:33:30 -0400 Received: from gandalf.tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by isrv.corpit.ru (Postfix) with ESMTP id 243A442FBD; Sat, 27 Jul 2013 11:33:29 +0400 (MSK) Received: by gandalf.tls.msk.ru (Postfix, from userid 1000) id 3FF66202318; Sat, 27 Jul 2013 11:33:28 +0400 (MSK) From: Michael Tokarev To: anthony@codemonkey.ws Date: Sat, 27 Jul 2013 11:33:16 +0400 Message-Id: <1374910406-15273-2-git-send-email-mjt@msgid.tls.msk.ru> X-Mailer: git-send-email 1.7.10.4 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> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 86.62.121.231 Cc: qemu-trivial@nongnu.org, Stefan Weil , Michael Tokarev , qemu-devel@nongnu.org Subject: [Qemu-devel] [PULL trivial 01/11] aes: Remove unused code (NDEBUG, u16) X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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 */