Commit f26112ab authored by Suman Anna's avatar Suman Anna Committed by Hari Kanigeri

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: default avatarSuman Anna <s-anna@ti.com>
parent 71f71bc6
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment