summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorVolodymyr Babchuk <vlad.babchuk@gmail.com>2017-11-29 14:48:38 +0200
committerVictor Chong <victor.chong@linaro.org>2018-02-21 15:40:49 +0000
commit78d437dbb108782b5c805ccbe99da8d4251329fd (patch)
treedcd50413427621b811437064150e79f380cf0cfa /drivers
parent17c7c494f71816b458f7fc6f90b7043d8398cad4 (diff)
BACKPORT: tee: shm: inline tee_shm_get_id()
Now, when struct tee_shm is defined in public header, we can inline small getter functions like this one. Change-Id: I9aba40c18ec448c043ab0b31849e4d6429908371 Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> (cherry picked from commit ef8e08d24ca84846ce639b835ebd2f15a943f42b) Signed-off-by: Victor Chong <victor.chong@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/tee/tee_shm.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/tee/tee_shm.c b/drivers/tee/tee_shm.c
index e8d6de997838..dd55e4735e3b 100644
--- a/drivers/tee/tee_shm.c
+++ b/drivers/tee/tee_shm.c
@@ -497,17 +497,6 @@ struct tee_shm *tee_shm_get_from_id(struct tee_context *ctx, int id)
EXPORT_SYMBOL_GPL(tee_shm_get_from_id);
/**
- * tee_shm_get_id() - Get id of a shared memory object
- * @shm: Shared memory handle
- * @returns id
- */
-int tee_shm_get_id(struct tee_shm *shm)
-{
- return shm->id;
-}
-EXPORT_SYMBOL_GPL(tee_shm_get_id);
-
-/**
* tee_shm_put() - Decrease reference count on a shared memory handle
* @shm: Shared memory handle
*/