From patchwork Thu Mar 25 20:06:15 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hebbar, Shivananda" X-Patchwork-Id: 88316 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 o2PK6Q3T021290 for ; Thu, 25 Mar 2010 20:06:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754605Ab0CYUGX (ORCPT ); Thu, 25 Mar 2010 16:06:23 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:47125 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754579Ab0CYUGW convert rfc822-to-8bit (ORCPT ); Thu, 25 Mar 2010 16:06:22 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id o2PK6IJw032210 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 25 Mar 2010 15:06:20 -0500 Received: from dbde70.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id o2PK6HmO027558; Fri, 26 Mar 2010 01:36:17 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde70.ent.ti.com ([172.24.170.148]) with mapi; Fri, 26 Mar 2010 01:36:17 +0530 From: "Hebbar, Shivananda" To: "linux-omap@vger.kernel.org" CC: "Ramirez Luna, Omar" , Felipe Contreras , "Palande Ameya (Nokia-D/Helsinki)" , "Menon, Nishanth" Date: Fri, 26 Mar 2010 01:36:15 +0530 Subject: [RFC][PATCH 2/19] DSPBRIDGE: Cleanup custom error code (DSP_ECORRUPTFILE ->EBADF) Thread-Topic: [RFC][PATCH 2/19] DSPBRIDGE: Cleanup custom error code (DSP_ECORRUPTFILE ->EBADF) Thread-Index: AcrMVp/MPVBYU5FSSWqc3LU7CtNG5Q== Message-ID: <19F8576C6E063C45BE387C64729E7394044DEBEB1E@dbde02.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]); Thu, 25 Mar 2010 20:06:26 +0000 (UTC) diff --git a/arch/arm/plat-omap/include/dspbridge/errbase.h b/arch/arm/plat-omap/include/dspbridge/errbase.h index a2fa786..81fc1b1 100644 --- a/arch/arm/plat-omap/include/dspbridge/errbase.h +++ b/arch/arm/plat-omap/include/dspbridge/errbase.h @@ -76,9 +76,6 @@ * has occurred. */ #define DSP_ECHANGEDURINGENUM (DSP_EBASE + 3) -/* An error occurred while parsing the DSP executable file */ -#define DSP_ECORRUPTFILE (DSP_EBASE + 4) - /* A failure occurred during a delete operation */ #define DSP_EDELETE (DSP_EBASE + 5) diff --git a/drivers/dsp/bridge/rmgr/nldr.c b/drivers/dsp/bridge/rmgr/nldr.c index c23deda..aa5b0c3 100644 --- a/drivers/dsp/bridge/rmgr/nldr.c +++ b/drivers/dsp/bridge/rmgr/nldr.c @@ -521,7 +521,7 @@ dsp_status nldr_create(OUT struct nldr_object **phNldr, /* Parse memory segment data */ dload_segs = (u16) (*((u32 *) psz_coff_buf)); if (dload_segs > MAXMEMSEGS) - status = DSP_ECORRUPTFILE; + status = EBADF; } /* Parse dynamic load memory segments */ if (DSP_SUCCEEDED(status) && dload_segs > 0) {