From patchwork Fri Jun 3 10:26:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 578487 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5806:0:0:0:0 with SMTP id j6csp1368531max; Fri, 3 Jun 2022 03:30:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrp3CaS0WdU5f1uGX/KH6xP+ho68IMJwaVaRy/SUPdy7x2FFNIxxcCOGS2VdvuYqSOCgu6 X-Received: by 2002:a5d:83da:0:b0:65b:1cd:fab2 with SMTP id u26-20020a5d83da000000b0065b01cdfab2mr4341530ior.5.1654252218120; Fri, 03 Jun 2022 03:30:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654252218; cv=none; d=google.com; s=arc-20160816; b=rXwovaEM90Inv4ejLirTn6uba02ce6hoUuy3/F5JdKwcItYaDnd04HrCMAx/SCzyCG qyFNc80rh+OkemN/StTGfXGc0iGtRuq0T4nim5OBUlY9wwQzpapTR6tVrVJkmnNgWdY8 GZBbiq0mVek+EDDjsx6BftRBt7s/G7YSrXPuBcc9oX0zBo3GQRQvGcjvDvPIxmEF0rtn jdIuG2t9FD4BwZQGhRozLKv8n+Z6JLXcKYDpZFQzqhdBrTxbmSIYsYhFTrNQafXovHjx 7Ufn9m68R9VCfr2JjQzFNcDaq+l1ZLnIepZMllK3snYi4n9ztAmo0sWyooDKh4ISzqQH aHFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=EfgNqysyEbKTOg2u+n8S0HbzrT9MyXDZFfi6Xyynp1g=; b=jVBwDrpXaal3Nqpqm7/sUPuhbOdqnvOPAq47/exX9a0kDRFOaBHSkhvy8prnVAd6jK 7NlmVCy7OU0rf6ppfw5c28HL+xPz0b7IVnNhq5Z+oYRL4Ry7vQgqNOHOybwAvbnP01wB a2eZ+BCpR5tIQ3SBcy7Pfbm4Iz1JQhd2LMHOJGIpnCpXVtWEJRZJO8d42EL6aYOcuRel 57F8pQlfPXPGnhj5tU2Mcnjxj94sHj8vqjFurcTGfpfIMZvjbafVjHqM7iBRJtewlp2G Tbyb/qx4x8l3Ws9EzcvUtuAv/wU7OyTOflxDPtnv8tMmwTIVhqKVx82v6bc78S5/nMaw KlTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y2+pvCFb; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id b1-20020a056638150100b0032e4c46c80asi10189929jat.115.2022.06.03.03.30.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jun 2022 03:30:17 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y2+pvCFb; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BB15283E9A; Fri, 3 Jun 2022 12:30:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="Y2+pvCFb"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 263E183E60; Fri, 3 Jun 2022 12:30:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 10B6D83E60 for ; Fri, 3 Jun 2022 12:30:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=etienne.carriere@linaro.org Received: by mail-wm1-x32c.google.com with SMTP id q15so741210wmj.2 for ; Fri, 03 Jun 2022 03:30:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EfgNqysyEbKTOg2u+n8S0HbzrT9MyXDZFfi6Xyynp1g=; b=Y2+pvCFbfHeEHCdZTnAsJo1zqgKNdEdoeac4cvhnx9Djs81klG46Y5ha0OfD5ffjbr mIxzWmv9tAXm1PU9GDh7cSoUM4RwzLlK80ymTjYmu8ouLapYPMqBibgylS9WxYBJC48x k6VHesMaemyYOdoPjhucFk+cMqnxsohlXpNk/xPBECOOLAPzeBwccFIbzqkhdgkc1aYN LeJ8Y9pAtr6s1Tc5Ho9/3PkHJqBdjMhYovr31WQ1l/SUGHgZB0EkjZotPeRUSeX5T76a Y3hUP2m96ssgdcQ/+16Xt7wgaJggLIDMDEjFZtScbzny3tXue89HROympozyP9pRop+M GvHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EfgNqysyEbKTOg2u+n8S0HbzrT9MyXDZFfi6Xyynp1g=; b=DqDZigmlTTmMSoh7nNTZGIWgF3djcLWpUTd4mD48hxzUrmtedHeMZw9D8uo61/y1DE D4Yt4jk0SXPLcUpPicnlQwVAV2FThUB1Z/zZRoRuS+78PMYRgaCqNEESAnA+whnGFYIf DvAMV86SR1+LAJNOB/LGQAzYT0lGnA6Kflv+QOAkYUBUmoXJm+qcAS9wVT4ARIjXuEGi dVm5W8ULu2ZiUisvuzaIIb+y9QorobgYZRwyRCAbZQcb5AeSmdaYlGLBvmq9AVNv/I6K SSL0wjVJLsZoEPoPUp1xyePxgdZfN8KeP2+yoqVyO2gxlD5ILiH0+WDS+l5IOjnbQQqT 0P3Q== X-Gm-Message-State: AOAM531NHAOLhJWiwsqFnu5P+iXhFKvBmT8rqqGLt628BQ5qoa0Tx39U yu6zpb/jsBQFkHFjf+yRUD8r4S2bSA8/GQ== X-Received: by 2002:a05:600c:3d0e:b0:39c:281e:6cf5 with SMTP id bh14-20020a05600c3d0e00b0039c281e6cf5mr7292629wmb.160.1654252202281; Fri, 03 Jun 2022 03:30:02 -0700 (PDT) Received: from lmecxl1178.lme.st.com ([2a04:cec0:10bb:3bc2:7476:fed6:d8ef:5c31]) by smtp.gmail.com with ESMTPSA id b8-20020a056000054800b002137b2a233fsm4685404wrf.36.2022.06.03.03.30.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jun 2022 03:30:01 -0700 (PDT) From: Etienne Carriere To: u-boot@lists.denx.de Cc: Etienne Carriere , Patrick Delaunay Subject: [PATCH v2 1/3] drivers: tee: optee: remove unused probe local variable Date: Fri, 3 Jun 2022 12:26:59 +0200 Message-Id: <20220603102701.2316720-1-etienne.carriere@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Removes local variable child in optee_probe() that is not used. Cc: Patrick Delaunay Signed-off-by: Etienne Carriere Reviewed-by: Patrick Delaunay --- 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; }