summaryrefslogtreecommitdiffstats
path: root/drivers/tee
diff options
context:
space:
mode:
authorVolodymyr Babchuk <vlad.babchuk@gmail.com>2017-11-29 14:48:38 +0200
committerJens Wiklander <jens.wiklander@linaro.org>2017-12-15 13:36:21 +0100
commitef8e08d24ca84846ce639b835ebd2f15a943f42b (patch)
treeca4c1c312a2a490c3299ff22f6e30f5a2fdec8fa /drivers/tee
parent217e0250cccb9e54d457991446cd3fab413085e1 (diff)
downloadlinux-ef8e08d24ca84846ce639b835ebd2f15a943f42b.tar.gz
linux-ef8e08d24ca84846ce639b835ebd2f15a943f42b.tar.bz2
linux-ef8e08d24ca84846ce639b835ebd2f15a943f42b.zip
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. Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'drivers/tee')
-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 ba02a15eefcb..04e1b8b37046 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
*/