diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c index 51d20d234c6112aa3115347b13b72b1e8ccad054..42b3fa09cc8ffee7167f67d1422cd1fad86a29e7 100644 --- a/drivers/tee/optee/core.c +++ b/drivers/tee/optee/core.c @@ -624,7 +624,7 @@ static int optee_probe(struct platform_device *pdev) * doesn't have any reserved memory we can use we can't continue. */ if (!(sec_caps & OPTEE_SMC_SEC_CAP_HAVE_RESERVED_SHM)) - return ERR_PTR(-EINVAL); + return -EINVAL; pool = optee_config_shm_memremap(invoke_fn, &memremaped_shm, sec_caps); if (IS_ERR(pool))