summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuman Anna <s-anna@ti.com>2019-03-26 18:00:50 -0500
committerSam Nelson <sam.nelson@ti.com>2019-05-21 15:55:33 -0400
commit9f1cd8df79bb2525947628e59cc9106f47d92e2e (patch)
treed780bb07f9be21fe7566129488a607986a129d2b
parent7007b8adff409fd8c90757c9adafd264a3ff15e3 (diff)
downloadipc-9f1cd8df79bb2525947628e59cc9106f47d92e2e.tar.gz
Resource: Fix compile warning in Resource_getTraceBufSize()
The function Resource_getTraceBufSize() should return a value of type SizeT, but is currently returning a value of NULL upon failures. This generates the following compile warning, "warning: return value type does not match the function type". Fix this properly by simply returning a value of 0. Signed-off-by: Suman Anna <s-anna@ti.com>
-rw-r--r--packages/ti/ipc/remoteproc/Resource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/ti/ipc/remoteproc/Resource.c b/packages/ti/ipc/remoteproc/Resource.c
index cbf8d49..c069c72 100644
--- a/packages/ti/ipc/remoteproc/Resource.c
+++ b/packages/ti/ipc/remoteproc/Resource.c
@@ -88,7 +88,7 @@ SizeT Resource_getTraceBufSize()
}
}
- return (NULL);
+ return 0;
}
/*