From patchwork Tue Jun 7 10:21:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 579316 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5806:0:0:0:0 with SMTP id j6csp4917037max; Tue, 7 Jun 2022 03:22:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyA9VpFauI0t2LTY80KTRmevbrIyNtqRoXYb/rTKSIHTg5RVuoICvxZuS0qiX/fnhj6WNNf X-Received: by 2002:a05:6602:27cd:b0:669:3d8d:4d77 with SMTP id l13-20020a05660227cd00b006693d8d4d77mr6982402ios.216.1654597357265; Tue, 07 Jun 2022 03:22:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654597357; cv=none; d=google.com; s=arc-20160816; b=xhd1PkpxIFSQHA9/jcgm4gBBCmm4wfULcVT/A1lJyJ5GXcbhcIuwZIvv3bBgQvStny ziIsOzNTuqHITGB7kx3PKKixoFG+iyRZ0XEg6WdxpYgGF878/3oVbppvApyKzDDITNci 0uFHUbu2RQpzscCcnqZwSMG9zmWTsu7rCTn7SyQFTc5AuEUxkqt/yiakptWUBhwmSWMk nSFLmHjrAP+Zf2p9PyBRHe6F7zTD6FBvfLzG11HN9uGn/hHchH9ZGgVJYwarlrskupS5 +ahRb2MnDM6WJa8M1/fqNBM8NKp+iGxlhAyI/dCmKM8uaKLovKnlIhvenbJ5evxjao/l lCAw== 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=/YkO9B2tSZZ2QjAj0Bt97FwadVx4RySY8/ATpvvmJUI=; b=RlLCkHBQjdILPaKCwxOBrxSn2hIL/yRc5Vklw+dxue5RLhUD5KhzZzi9BT6mvBfk4o 1DTO7Hp6Krlqls4nzkWATrgc1bUgWF1PfkKhBVktyxtTs/CbsLSeAdDZoJyz0ph8XA/6 nE39rNkgET2ZSfa2m3jsFVOaIa+uHelO6Xp9qq2DD4scr0qnYrk+P/5IzfrtOb6lJUOT UbFxg4Y7YZ2OrkYxXEZLtzyAGrWQfpmnPFmuZpokFLaAWTqiVV64NRoQPnCnNsum1qhT 1Oh6DLLgvsvVBtmT0bVQCK7saRBsgpDBqQrLttYMZly0ZnWXtOtjiqQT/AfnqVDaR+mf IGzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fBdCrGzX; 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 p11-20020a056e0206cb00b002d152cc99c2si16924715ils.167.2022.06.07.03.22.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 03:22:37 -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=fBdCrGzX; 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 3B6EB842EA; Tue, 7 Jun 2022 12:22:31 +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="fBdCrGzX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E641684343; Tue, 7 Jun 2022 12:22:28 +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-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (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 32DC0805FE for ; Tue, 7 Jun 2022 12:22:26 +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-x330.google.com with SMTP id r123-20020a1c2b81000000b0039c1439c33cso9268447wmr.5 for ; Tue, 07 Jun 2022 03:22:26 -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=/YkO9B2tSZZ2QjAj0Bt97FwadVx4RySY8/ATpvvmJUI=; b=fBdCrGzX/y1CSwwqKR2SGpAWoE55w0EtDHRq3C3rtUEui+W7sCnpYbPntM+rvZXFXA XpUF6O5LdfMGRgFDGkbCSB+zgezdftAM4JiHwBqrPNG9wmU2Fqe3ja6LGNdt+cFAMjsZ XXKxjZcunyCrE2W/g3c4fPCTT0v8MDeZmh86RAhItADSWpzCnz1cxKly6cXU4Iq4Zx5p ZQYi5L/JXSqHKuKWLeBm/17BnQgTwfWcAAOHwcsBxTU1IOxQJYcG0lYFbRuqwb0lLv+9 rcnNvqSfDX+BJncroxpl6lEeEjGgFscWTg2OXnLxN2k8D24NTh2DshKl3E6Sq/GG7xoD ZFSQ== 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=/YkO9B2tSZZ2QjAj0Bt97FwadVx4RySY8/ATpvvmJUI=; b=rjuKqZMuv4RL1LNJyCOqBfiqPqMtkKHqBjJgWoLQn9mR1wMtICbK7tgZ6hjbhDsoSX PRwY4eTLj9oiSqVgKWH15NraO0JRkXxZK8lrrbEXarujNKiYohcyhPBFRCk6OwBy6XHI bzXiUlg9QSxXE2BqLiPSwLK/lTp0fowPym8aOcARsjOXuIf7oVQamekBGizht0tvEtjv 95ULoRgNRpdBXX6CBfcetYDf8Xn95exfW3A/BbIoVbJCwDn8+tHzBGXoaBR07Bslrsl6 biMuq2hhIl6Ilji9dT/kPd4d6SaNdMKzrnC1OXnVto5IBNssYIU8QMwzeZgjVdVmqZ7X 9SSA== X-Gm-Message-State: AOAM5331LBztQaZOPxfMbE9HxcYKywpdIJHQihThKs7EIfrXB0xMlPd9 1mzAb3VURYbLMI7Xw1sPQ9EJMCtWjuYTVg== X-Received: by 2002:a05:600c:4f04:b0:39c:54bb:28cd with SMTP id l4-20020a05600c4f0400b0039c54bb28cdmr7829038wmq.107.1654597345408; Tue, 07 Jun 2022 03:22:25 -0700 (PDT) Received: from lmecxl1178.lme.st.com ([2a04:cec0:1181:a1da:3be2:1ef1:b537:8871]) by smtp.gmail.com with ESMTPSA id k7-20020a5d6d47000000b0020e5e906e47sm17373273wri.75.2022.06.07.03.22.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 03:22:24 -0700 (PDT) From: Etienne Carriere To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Etienne Carriere , Patrick Delaunay Subject: [PATCH v3 1/3] drivers: tee: optee: remove unused probe local variable Date: Tue, 7 Jun 2022 12:21:24 +0200 Message-Id: <20220607102126.2605773-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 Reviewed-by: Ilias Apalodimas --- 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; }