Skip to content

Commit 6d83d80

Browse files
committed
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 <[email protected]>
2 parents b4e3b88 + 1115899 commit 6d83d80

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/tee/tee_shm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ struct tee_shm *tee_shm_alloc(struct tee_context *ctx, size_t size, u32 flags)
162162
}
163163
}
164164

165-
if (ctx)
166-
teedev_ctx_get(ctx);
165+
teedev_ctx_get(ctx);
167166

168167
return shm;
169168
err_rem:

0 commit comments

Comments
 (0)