public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v5 1/3] drivers: tee: optee: remove unused probe local variable
@ 2022-07-26 14:21 Etienne Carriere
  2022-07-26 14:21 ` [PATCH v5 2/3] drivers: tee: optee: discover OP-TEE services Etienne Carriere
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Etienne Carriere @ 2022-07-26 14:21 UTC (permalink / raw)
  To: u-boot; +Cc: Etienne Carriere, Patrick Delaunay

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>
---
- No change since v4

Changes since v3:
- Applied Patrick's R-b tag.

No change since v2.

New change not in v1 series.
---
 drivers/tee/optee/core.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c
index a89d62aaf0..c1f5fc4c7a 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;
 	}
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-09-15 14:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-26 14:21 [PATCH v5 1/3] drivers: tee: optee: remove unused probe local variable Etienne Carriere
2022-07-26 14:21 ` [PATCH v5 2/3] drivers: tee: optee: discover OP-TEE services Etienne Carriere
2022-09-15 14:01   ` Tom Rini
2022-07-26 14:21 ` [PATCH v5 3/3] drivers: rng: optee_rng: register to CONFIG_OPTEE_SERVICE_DISCOVERY Etienne Carriere
2022-09-15 14:02   ` Tom Rini
2022-09-15 14:01 ` [PATCH v5 1/3] drivers: tee: optee: remove unused probe local variable Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox