summaryrefslogtreecommitdiffstats
path: root/drivers/tee/tee_shm.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2020-05-25 16:56:33 +0200
committerArnd Bergmann <arnd@arndb.de>2020-05-25 16:56:33 +0200
commit6d83d800b2456122299dcfce4a7da4b86d7cec8e (patch)
treeb2b7676fdd55f92b66f0d84d625917e7b51bce20 /drivers/tee/tee_shm.c
parentMerge tag 'v5.7-next-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/ma... (diff)
parenttee: remove unnecessary NULL check in tee_shm_alloc() (diff)
downloadlinux-6d83d800b2456122299dcfce4a7da4b86d7cec8e.tar.xz
linux-6d83d800b2456122299dcfce4a7da4b86d7cec8e.zip
Merge tag 'tee-smatch-for-5.8' of git://git.linaro.org/people/jens.wiklander/linux-tee into arm/drivers
tee: remove unnecessary NULL check in tee_shm_alloc() * tag 'tee-smatch-for-5.8' of git://git.linaro.org/people/jens.wiklander/linux-tee: tee: remove unnecessary NULL check in tee_shm_alloc() Link: https://lore.kernel.org/r/20200504181333.GA11018@jade Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/tee/tee_shm.c')
-rw-r--r--drivers/tee/tee_shm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/tee/tee_shm.c b/drivers/tee/tee_shm.c
index c259271d4d5f..827ac3d0fea9 100644
--- a/drivers/tee/tee_shm.c
+++ b/drivers/tee/tee_shm.c
@@ -162,8 +162,7 @@ struct tee_shm *tee_shm_alloc(struct tee_context *ctx, size_t size, u32 flags)
}
}
- if (ctx)
- teedev_ctx_get(ctx);
+ teedev_ctx_get(ctx);
return shm;
err_rem: