From patchwork Tue Jul 26 14:21:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 593445 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:b811:0:0:0:0 with SMTP id fc17csp3594346mab; Tue, 26 Jul 2022 07:22:52 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sMA+w5VCQriQvnvUvcBEhLWTl6NUy+/uSpZuX9MPth2CSxhrtXDF5BbyWb4TIz3HoONFgI X-Received: by 2002:a02:9101:0:b0:341:a089:e855 with SMTP id a1-20020a029101000000b00341a089e855mr6614862jag.230.1658845371843; Tue, 26 Jul 2022 07:22:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658845371; cv=none; d=google.com; s=arc-20160816; b=KgXZS2zaUOjTpS4HsmAZz6J8L7ZsYxQmNXPXq3hXS4RqQX6+wiafqGYm5l5Zqle/F8 hYDFAHU/L36wXpuqbXLwXAxvHSHMf0XYOtLemaVNko2bUQg5hfxNmCuijT3FvIHb4Phy AEP0PCqhmUMrYUPcXNfaWynw0MgJEWtu9kxY3Ewz0+QsFwrqOnCb2J2Rs/F4G6g+7Ygb X2Z4GjB7vUU7RTM8Lx3DkxLzNam1vlPuAzrGPglPEEbfQ154IYpo6KEoW90K559D9WAP jzjkbaN6/MDt6ArbAF9zWS9xIV+en0UTOK7mmCQ+jOwoUtUD4E7/+k1OuMwUg3cXBkUi HaDw== 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=KQEDcbr2oIiaTwcTlqctO0kETc5KYbMWOcW4TA0FsWg=; b=V9t0AOO9B+QF6+B/uOfIlg/FhvGUVv8h1lLi20J8PVJvLcH4g4T9RWF8fsUnhHeLrA uFMC4/LgMQUVHpzwGp0yuA8TwLOt5vDAuihRhorXYRKUh1SGKL1OSxg3e1OYGpWjieBT N738p/bFC9yijJGioIj5g+Uh6FMSZ+AlqJ5bWSHJRy0O+IhTSrVoAoGh8/EzxNV1HKM3 adr2IMKddG/Pouv5+cxQOLNQxUxN7E5v48oi2ZIsNHd8LoVE0mYEuSHBRYfQ0XuXET2L 0ebn+CkKvUiP17Swa0dMvWwsJPZwbgCMcxbDqsCDaRTzticTUL4ikSl7OtyYX04F1Ch7 pjFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="DrC/BXtD"; 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 f17-20020a05660215d100b0067bb74b090asi13708631iow.112.2022.07.26.07.22.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jul 2022 07:22:51 -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="DrC/BXtD"; 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 E337F84144; Tue, 26 Jul 2022 16:22:47 +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="DrC/BXtD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CCE6D8418B; Tue, 26 Jul 2022 16:22:45 +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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) (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 7D3F58407F for ; Tue, 26 Jul 2022 16:22:43 +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-wr1-x436.google.com with SMTP id bn9so9503517wrb.9 for ; Tue, 26 Jul 2022 07:22:43 -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=KQEDcbr2oIiaTwcTlqctO0kETc5KYbMWOcW4TA0FsWg=; b=DrC/BXtDXj9bqZhN346wPmkQevQ49yXo+4zQ+27UTszktQFnw/Wx5xF3QH5AyBavHV ANP25BdGl2DZmVI8f26TEeYPOlFzZJfJ815D4E5gqw6g+WJcjfOhou1IJywfxcm9YF/T MEW++MCfBOfJ6F3KCIQUL36W1uT9PZm+pa/vdok6S1ExHK+NQUCLlQqUDEoDZbJ6WO2i bMrZDMYv13hWpVTbvpoPbhEBr0a8AnNG/twuagR421cW5m2R0v3AfD7bjxwsJCA/SsOk AzrYbDv3Bs6FcdcukaQLMK4x3Cf3mug/QsiIu+h34txDe+Ez5jme7wg1qIY17kQ9hScS etpg== 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=KQEDcbr2oIiaTwcTlqctO0kETc5KYbMWOcW4TA0FsWg=; b=mde8w3YXhe1jeQDMYa2wfwDJThDPtIJyA8xYaTub/UKOQaJeBhFJ5nqksFu7PNTMdl 2wxkOvRTkL0UyF3NVv2EVf7qfBjzQP1ccue5DoUZHEiZm/6dlsMupz8vIT+qd/FPLREE 64caEaosiRJoJki1wVVoRuT+0tJJ1jLCUeAFy24Z9qs3+2KA4E6kvte5qO1HFHjkk8N8 EEP851jMgaWZqCAkcELjU9/VqV4aMe+16RoTv3kbuBgZGoxOxjhFEFwtExEQIs2D6z1A Szt4Hwxkpg+TptN/okrKYW36i72lFa8lWbimcK53qvIq/nc9OCwyyaCngdu5DWb6g+jI dyjw== X-Gm-Message-State: AJIora8p3JO1BukzVqWYCP5IwGEkLbx0hVNa5yDEiqBvwvlydJlYbmJ7 v88RKf6e60zdS/IFrNvfQO0CDgVsNa7/Xg== X-Received: by 2002:adf:f0c1:0:b0:21d:ed10:5811 with SMTP id x1-20020adff0c1000000b0021ded105811mr10873297wro.656.1658845362719; Tue, 26 Jul 2022 07:22:42 -0700 (PDT) Received: from lmecxl1178.lme.st.com ([2a04:cec0:119c:31fb:8cfb:f47b:e69f:3313]) by smtp.gmail.com with ESMTPSA id i5-20020a1c3b05000000b003a31d200a7dsm18902950wma.9.2022.07.26.07.22.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jul 2022 07:22:42 -0700 (PDT) From: Etienne Carriere To: u-boot@lists.denx.de Cc: Etienne Carriere , Patrick Delaunay Subject: [PATCH v5 1/3] drivers: tee: optee: remove unused probe local variable Date: Tue, 26 Jul 2022 16:21:41 +0200 Message-Id: <20220726142143.1739265-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.6 at phobos.denx.de X-Virus-Status: Clean Removes local variable child in optee_probe() that is not used. Cc: Patrick Delaunay Reviewed-by: Patrick Delaunay Signed-off-by: Etienne Carriere --- - 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; }