[PATCH 22/40] DSPBRIDGE: err code replace DSP_EBADSEGID with EBADR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Replace DSP_EBADSEGID with EBADR

Signed-off-by: Omar Ramirez Luna <omar.ramirez@xxxxxx>
---
 drivers/dsp/bridge/rmgr/node.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/dsp/bridge/rmgr/node.c b/drivers/dsp/bridge/rmgr/node.c
index 159ea2b..1c7742a 100644
--- a/drivers/dsp/bridge/rmgr/node.c
+++ b/drivers/dsp/bridge/rmgr/node.c
@@ -731,7 +731,7 @@ DBAPI node_alloc_msg_buf(struct node_object *hnode, u32 usize,
 	if (DSP_SUCCEEDED(status) && (!va_flag)) {
 		if (pattr->segment_id != 1) {
 			/* Node supports single SM segment only. */
-			status = DSP_EBADSEGID;
+			status = -EBADR;
 		}
 		/*  Arbitrary SM buffer alignment not supported for host side
 		 *  allocs, but guaranteed for the following alignment
@@ -1695,7 +1695,7 @@ dsp_status node_free_msg_buf(struct node_object *hnode, IN u8 * pbuffer,
 			}
 			/* Node supports single SM segment only */
 			if (pattr->segment_id != 1)
-				status = DSP_EBADSEGID;
+				status = -EBADR;
 
 			/* pbuffer is clients Va. */
 			status = cmm_xlator_free_buf(pnode->xlator, pbuffer);
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux