]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
drivers: tee: optee: remove unused probe local variable
authorEtienne Carriere <etienne.carriere@linaro.org>
Tue, 26 Jul 2022 14:21:41 +0000 (16:21 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 14 Sep 2022 19:23:03 +0000 (15:23 -0400)
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>
drivers/tee/optee/core.c

index a89d62aaf0b3ba997a9575247eba1d43ea1b8866..c1f5fc4c7a1236e6cdb8d1f4dce27a427f5f4cf4 100644 (file)
@@ -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;
        }