From patchwork Fri Apr 9 00:10:52 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gomez Castellanos, Ivan" X-Patchwork-Id: 91573 X-Patchwork-Delegate: omar.ramirez@ti.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o390BVGZ024552 for ; Fri, 9 Apr 2010 00:11:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759246Ab0DIALa (ORCPT ); Thu, 8 Apr 2010 20:11:30 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:50947 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759240Ab0DIALa convert rfc822-to-8bit (ORCPT ); Thu, 8 Apr 2010 20:11:30 -0400 Received: from dlep35.itg.ti.com ([157.170.170.118]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id o390BQYo009617 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 8 Apr 2010 19:11:26 -0500 Received: from dlep26.itg.ti.com (localhost [127.0.0.1]) by dlep35.itg.ti.com (8.13.7/8.13.7) with ESMTP id o390BQEj016740; Thu, 8 Apr 2010 19:11:26 -0500 (CDT) Received: from dlee75.ent.ti.com (localhost [127.0.0.1]) by dlep26.itg.ti.com (8.13.8/8.13.8) with ESMTP id o390BQiC022342; Thu, 8 Apr 2010 19:11:26 -0500 (CDT) Received: from dlee01.ent.ti.com ([157.170.170.12]) by dlee75.ent.ti.com ([157.170.170.72]) with mapi; Thu, 8 Apr 2010 19:11:26 -0500 From: "Gomez Castellanos, Ivan" To: "linux-omap@vger.kernel.org" CC: "Ameya.Palande@nokia.com" , "Hiroshi.DOYU@nokia.com" , "felipe.contreras@nokia.com" , "Menon, Nishanth" Date: Thu, 8 Apr 2010 19:10:52 -0500 Subject: [PATCH 10/13] DSPBRIDGE: Remove CHNL_IS_VALID_MGR and CHNL_IS_VALID_CHNL Thread-Topic: [PATCH 10/13] DSPBRIDGE: Remove CHNL_IS_VALID_MGR and CHNL_IS_VALID_CHNL Thread-Index: AQHK13kxTgr1F2xjHkGyHLWlpdLIEg== Message-ID: <818EF96F5A7CC84789DD014773DB09548E64D155@dlee01.ent.ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 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]); Fri, 09 Apr 2010 00:11:35 +0000 (UTC) diff --git a/drivers/dsp/bridge/pmgr/chnl.c b/drivers/dsp/bridge/pmgr/chnl.c index 6adc3c3..57b22c5 100644 --- a/drivers/dsp/bridge/pmgr/chnl.c +++ b/drivers/dsp/bridge/pmgr/chnl.c @@ -101,7 +101,7 @@ dsp_status chnl_create(OUT struct chnl_mgr **phChnlMgr, } } - DBC_ENSURE(DSP_FAILED(status) || CHNL_IS_VALID_MGR(chnl_mgr_obj)); + DBC_ENSURE(DSP_FAILED(status) || chnl_mgr_obj); return status; } @@ -119,7 +119,7 @@ dsp_status chnl_destroy(struct chnl_mgr *hchnl_mgr) DBC_REQUIRE(refs > 0); - if (CHNL_IS_VALID_MGR(chnl_mgr_obj)) { + if (chnl_mgr_obj) { intf_fxns = chnl_mgr_obj->intf_fxns; /* Let WMD channel module destroy the chnl_mgr: */ status = (*intf_fxns->pfn_chnl_destroy) (hchnl_mgr); @@ -127,7 +127,7 @@ dsp_status chnl_destroy(struct chnl_mgr *hchnl_mgr) status = DSP_EHANDLE; } - DBC_ENSURE(DSP_FAILED(status) || !CHNL_IS_VALID_MGR(chnl_mgr_obj)); + DBC_ENSURE(DSP_FAILED(status) || !chnl_mgr_obj); return status; } diff --git a/drivers/dsp/bridge/pmgr/chnlobj.h b/drivers/dsp/bridge/pmgr/chnlobj.h index ceff374..6750273 100644 --- a/drivers/dsp/bridge/pmgr/chnlobj.h +++ b/drivers/dsp/bridge/pmgr/chnlobj.h @@ -23,13 +23,6 @@ #include #include -/* Object validateion macros: */ -#define CHNL_IS_VALID_MGR(h) \ - ((h != NULL) && ((h)->dw_signature == CHNL_MGRSIGNATURE)) - -#define CHNL_IS_VALID_CHNL(h)\ - ((h != NULL) && ((h)->dw_signature == CHNL_SIGNATURE)) - /* * This struct is the first field in a chnl_mgr struct, as implemented in * a WMD channel class library. Other, implementation specific fields