From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LAUbq-0003c5-9d for qemu-devel@nongnu.org; Wed, 10 Dec 2008 14:20:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LAUbo-0003ax-D1 for qemu-devel@nongnu.org; Wed, 10 Dec 2008 14:20:33 -0500 Received: from [199.232.76.173] (port=46438 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LAUbo-0003as-6u for qemu-devel@nongnu.org; Wed, 10 Dec 2008 14:20:32 -0500 Received: from outbound-wa4.frontbridge.com ([216.32.181.16]:1984 helo=WA4EHSOBE006.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1LAUbn-0004uq-Sc for qemu-devel@nongnu.org; Wed, 10 Dec 2008 14:20:32 -0500 Message-ID: <494016A0.1090907@amd.com> Date: Wed, 10 Dec 2008 20:21:04 +0100 From: Andre Przywara MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080600040405000108030709" Subject: [Qemu-devel] [PATCH] Remove redundant #ifdef _BSD Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: blauwirbel@gmail.com --------------080600040405000108030709 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Hi, since _BSD if already handled in osdep.c:qemu_memalign(), we don't need to check it in the calling function again. getpagesize() is available in BSD. Regards, Andre. Signed-off-by: Andre Przywara -- Andre Przywara AMD-Operating System Research Center (OSRC), Dresden, Germany Tel: +49 351 277-84917 ----to satisfy European Law for business letters: AMD Saxony Limited Liability Company & Co. KG, Wilschdorfer Landstr. 101, 01109 Dresden, Germany Register Court Dresden: HRA 4896, General Partner authorized to represent: AMD Saxony LLC (Wilmington, Delaware, US) General Manager of AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy --------------080600040405000108030709 Content-Type: text/x-patch; name="rem_bsd_ifdef.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="rem_bsd_ifdef.patch" diff -r fb954e9c4a86 osdep.c --- a/osdep.c Wed Dec 10 19:23:18 2008 +0100 +++ b/osdep.c Wed Dec 10 20:19:06 2008 +0100 @@ -200,11 +200,7 @@ void *qemu_vmalloc(size_t size) if (kqemu_allowed) return kqemu_vmalloc(size); #endif -#ifdef _BSD - return valloc(size); -#else return qemu_memalign(getpagesize(), size); -#endif } void qemu_vfree(void *ptr) --------------080600040405000108030709--