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: 1639903 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=fBdCrGzX; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LHRJ157PLz9sGC for ; Tue, 7 Jun 2022 20:22:39 +1000 (AEST) 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-Google-Smtp-Source: ABdhPJyEkJsEvWF1FFg0EsMXWGDrqK1pwOntQUCdk15fpbnN9IPIxYJCvQ5vQmHVFdGJ545zUVz8MA== 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; }