From patchwork Mon Jul 12 22:56:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 111566 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6CMxxMg016827 for ; Mon, 12 Jul 2010 23:00:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756087Ab0GLW4n (ORCPT ); Mon, 12 Jul 2010 18:56:43 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:56970 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755939Ab0GLW4X (ORCPT ); Mon, 12 Jul 2010 18:56:23 -0400 Received: from dlep33.itg.ti.com ([157.170.170.112]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id o6CMuEI3012341 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Jul 2010 17:56:14 -0500 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep33.itg.ti.com (8.13.7/8.13.7) with ESMTP id o6CMuDBf016489; Mon, 12 Jul 2010 17:56:13 -0500 (CDT) Received: from senorita (senorita.am.dhcp.ti.com [128.247.74.250]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id o6CMuDP07276; Mon, 12 Jul 2010 17:56:13 -0500 (CDT) Received: by senorita (Postfix, from userid 1000) id 560F6C25F; Mon, 12 Jul 2010 17:56:10 -0500 (CDT) From: Nishanth Menon To: Greg Kroah-Hartman Cc: Omar Ramirez Luna , Ohad Ben-Cohen , Ameya Palande , Fernando Guzman Lugo , Felipe Contreras , Andy Shevchenko , lkml , linux-omap , Nishanth Menon Subject: [PATCH 02/11] staging: tidspbridge: no need for custom NULL Date: Mon, 12 Jul 2010 17:56:00 -0500 Message-Id: <1278975369-7687-3-git-send-email-nm@ti.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1278975369-7687-1-git-send-email-nm@ti.com> References: <1278975369-7687-1-git-send-email-nm@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 12 Jul 2010 23:00:01 +0000 (UTC) diff --git a/drivers/staging/tidspbridge/dynload/header.h b/drivers/staging/tidspbridge/dynload/header.h index 04623f1..5b50a15 100644 --- a/drivers/staging/tidspbridge/dynload/header.h +++ b/drivers/staging/tidspbridge/dynload/header.h @@ -14,10 +14,6 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#ifndef NULL -#define NULL 0 -#endif - #include #define DL_STRCMP strcmp diff --git a/drivers/staging/tidspbridge/hw/GlobalTypes.h b/drivers/staging/tidspbridge/hw/GlobalTypes.h index ba045eb..2f8e69b 100644 --- a/drivers/staging/tidspbridge/hw/GlobalTypes.h +++ b/drivers/staging/tidspbridge/hw/GlobalTypes.h @@ -20,15 +20,6 @@ #define _GLOBALTYPES_H /* - * Definition: NULL - * - * DESCRIPTION: Invalid pointer - */ -#ifndef NULL -#define NULL (void *)0 -#endif - -/* * Definition: RET_CODE_BASE * * DESCRIPTION: Base value for return code offsets diff --git a/drivers/staging/tidspbridge/include/dspbridge/dbtype.h b/drivers/staging/tidspbridge/include/dspbridge/dbtype.h index 0b2cb93..ca5eaf8 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/dbtype.h +++ b/drivers/staging/tidspbridge/include/dspbridge/dbtype.h @@ -42,14 +42,6 @@ #endif /*===========================================================================*/ -/* NULL (Definition is language specific) */ -/*===========================================================================*/ - -#ifndef NULL -#define NULL ((void *)0) /* Null pointer. */ -#endif - -/*===========================================================================*/ /* NULL character (normally used for string termination) */ /*===========================================================================*/ diff --git a/drivers/staging/tidspbridge/include/dspbridge/std.h b/drivers/staging/tidspbridge/include/dspbridge/std.h index 7e09fec..ca2827d 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/std.h +++ b/drivers/staging/tidspbridge/include/dspbridge/std.h @@ -74,10 +74,6 @@ typedef s32(*fxn) (void); /* generic function type */ -#ifndef NULL -#define NULL 0 -#endif - /* * These macros are used to cast 'Arg' types to 's32' or 'Ptr'. * These macros were added for the 55x since Arg is not the same