Skip to content

Commit 95ff410

Browse files
committed
Merge tag 'optee-for-v7.1' of git://git.kernel.org/pub/scm/linux/kernel/git/jenswi/linux-tee into soc/drivers
OP-TEE update for 7.1 Simplify TEE implementor ID match logic * tag 'optee-for-v7.1' of git://git.kernel.org/pub/scm/linux/kernel/git/jenswi/linux-tee: optee: simplify OP-TEE context match Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents d752790 + 8c6e843 commit 95ff410

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

drivers/tee/optee/device.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@
1313

1414
static int optee_ctx_match(struct tee_ioctl_version_data *ver, const void *data)
1515
{
16-
if (ver->impl_id == TEE_IMPL_ID_OPTEE)
17-
return 1;
18-
else
19-
return 0;
16+
return (ver->impl_id == TEE_IMPL_ID_OPTEE);
2017
}
2118

2219
static int get_devices(struct tee_context *ctx, u32 session,

0 commit comments

Comments
 (0)