From d40f2f1437dde6be8c30b073bcafd29a9d868589 Mon Sep 17 00:00:00 2001
From: Suman Anna <s-anna@ti.com>
Date: Wed, 1 Jul 2009 19:27:14 -0500
Subject: [PATCH] SYSLINK: ipc - remove a WARN_ON in sharedregion module

This patch removes an unnecessary WARN_ON in sharedregion_get_ptr
function. The WARN_ON is caused when a INVALID_SRPTR value is passed
into the function, which is a valid argument.

Signed-off-by: Suman Anna <s-anna@ti.com>
---
 drivers/dsp/syslink/multicore_ipc/sharedregion.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dsp/syslink/multicore_ipc/sharedregion.c b/drivers/dsp/syslink/multicore_ipc/sharedregion.c
index f310017799e..072fee2ddeb 100755
--- a/drivers/dsp/syslink/multicore_ipc/sharedregion.c
+++ b/drivers/dsp/syslink/multicore_ipc/sharedregion.c
@@ -372,7 +372,7 @@ void *sharedregion_get_ptr(u32 *srptr)
 	if (WARN_ON(sharedregion_state.table == NULL))
 		goto error;
 
-	if (WARN_ON(srptr == SHAREDREGION_INVALIDSRPTR))
+	if (srptr == SHAREDREGION_INVALIDSRPTR)
 		goto error;
 
 	myproc_id = multiproc_get_id(NULL);
-- 
2.25.4