diff options
| author | Etienne Carriere <[email protected]> | 2022-07-26 16:21:41 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-09-14 15:23:03 -0400 |
| commit | fd0d7a6c88fe0ae16dda95eba52c598b9fa9db2a (patch) | |
| tree | 425e54c41fa9c6046a3d4ac86ae4724fd3b3c58a | |
| parent | 77253c50ab5910bf72e1e868c86940c5a2bc7bb9 (diff) | |
drivers: tee: optee: remove unused probe local variable
Removes local variable child in optee_probe() that is not used.
Cc: Patrick Delaunay <[email protected]>
Reviewed-by: Patrick Delaunay <[email protected]>
Signed-off-by: Etienne Carriere <[email protected]>
| -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 a89d62aaf0b..c1f5fc4c7a1 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; } |
