diff options
author | Etienne Carriere <etienne.carriere@linaro.org> | 2022-06-17 17:36:51 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-07-08 09:06:57 -0400 |
commit | 2ce253c7f8178178b91f088bc108260f06169472 (patch) | |
tree | fa2a6aabc13c36bdf87dfab5f679490265ff1764 | |
parent | 8142c4554ffaa927529f24427a35f7ee2861793a (diff) | |
download | u-boot-2ce253c7f8178178b91f088bc108260f06169472.zip u-boot-2ce253c7f8178178b91f088bc108260f06169472.tar.gz u-boot-2ce253c7f8178178b91f088bc108260f06169472.tar.bz2 |
drivers: tee: optee: remove unused probe local variable
Removes local variable child in optee_probe() that is not used.
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
-rw-r--r-- | drivers/tee/optee/core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c index a89d62a..c1f5fc4 100644 --- a/drivers/tee/optee/core.c +++ b/drivers/tee/optee/core.c @@ -642,7 +642,6 @@ static int optee_probe(struct udevice *dev) { struct optee_pdata *pdata = dev_get_plat(dev); u32 sec_caps; - struct udevice *child; int ret; if (!is_optee_api(pdata->invoke_fn)) { @@ -673,7 +672,7 @@ static int optee_probe(struct udevice *dev) * only bind the drivers associated to the supported OP-TEE TA */ if (IS_ENABLED(CONFIG_RNG_OPTEE)) { - ret = device_bind_driver(dev, "optee-rng", "optee-rng", &child); + ret = device_bind_driver(dev, "optee-rng", "optee-rng", NULL); if (ret) return ret; } |