From patchwork Sat Oct 26 08:00:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 838771 Delivered-To: patch@linaro.org Received: by 2002:adf:e287:0:b0:37d:45d0:187 with SMTP id v7csp676714wri; Sat, 26 Oct 2024 01:01:19 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWDUTNZg+pNQFz8o2CGPcZ/cbvbgZM0igNDOiTSSaHMtiKDVn9pKP5/we+RWt2yLE4P/MOOTw==@linaro.org X-Google-Smtp-Source: AGHT+IFWagkZTAnSKY59+VJmGeyEe3PVdzSDC1NQijl0MAlYtEJdXla++MH+wpzJ6KEer572BRvh X-Received: by 2002:a05:651c:b12:b0:2ef:20ae:d113 with SMTP id 38308e7fff4ca-2fcbe07c385mr7409751fa.40.1729929679346; Sat, 26 Oct 2024 01:01:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729929679; cv=none; d=google.com; s=arc-20240605; b=BxSC2jHM0gXv5982uR5Po5FN2Jo8Q89DRU6OEc7bHc+31z39lWabrxNrt7dXTJKdzT FiC9NLamLpuT+Y0JNNjXSxwCqaqzc9W9xf7pn6OV42BHQAdoehNVGFGY5e/nhSj/QUtO AoLVS/EnYpjfcV80Cu5tf7wvzcqf+5q0vjhoAU9caKv1Zn3gYDr4/sV0Fcc2m4Ntz/Jn 7rAbe2fNKsxj+O0Jde1NepixS1I7XGsG1wKpFzrvx51TsK4UGhEDThjkXDoe8lS5G4oW Eb9u9GGqi3HDX+ChMEhcfNfiV0hAJmV1TTA9fTjgc+z2CHlrMnW+dlCxgILlZvtkjYQk tiOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=+af8JleH+HioQNHuV1xAco6oQtIB9NxtywL9TG2Js+Q=; fh=2OWpGZ55uOW2JtmX+MG1AqiMCoj7EKTzkoafSqS49UQ=; b=kAJEJ2dtMquvDsNn1DhpZenmFIunDBGeIsxZ2mdFXPyQuwf0i93ZIoxUt0XPxeJ+d8 BVIi+yZUghu2U2fLKwtdXtvPtqZq2TNS4jvbjAeqwlQdQE2KSqgs/NQ72wB9wlgUd+Lw nU/82A8AV7lCu+ype5lAWgjp7PMQh/nHzWcIHdIejo3UhV7vJukDi9XDQTr3pkZmqxXm sUL+PWIY+psZLyOJ3ui8wtq23x6gYTLw29o7gkCUjW5M88uFEbTBDrGtXbt63HY0Eec6 urgb3YrjWRjBVMPWjiVXCJvB9W793HLJy10pxmoo1isDiIVSnR2n7vg0Y6qF9gz/hBeT 7wOQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RH8kqfgw; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 38308e7fff4ca-2fcb4606ad6si8404311fa.400.2024.10.26.01.01.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 01:01:19 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RH8kqfgw; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 07CC388DF1; Sat, 26 Oct 2024 10:01:13 +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="RH8kqfgw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 197C888DF8; Sat, 26 Oct 2024 10:01:11 +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,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) (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 85A8288936 for ; Sat, 26 Oct 2024 10:01:01 +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=ilias.apalodimas@linaro.org Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a7aa086b077so352137366b.0 for ; Sat, 26 Oct 2024 01:01:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729929656; x=1730534456; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+af8JleH+HioQNHuV1xAco6oQtIB9NxtywL9TG2Js+Q=; b=RH8kqfgwUTOIFaPFgyy+0vvkwvbOKX9zYFj1yTMDq78f8xR2xpKnYCEGrZMN/VZ8ga VUESgAsj1FrX/tNOmlpmdskBI7zPTLkIkGowD/WTY3vdvBZlf8E3G0CWdhSLgouPNgR3 B2vipn6aRbvNpSfQoKuaBDNUbaDDNXq4x/Dv+KhwhUoYh/PgoFcFz+5XcEK27g2hZH/j OQVcSvJxEf0kUSUJm+Qy+zq1Bs7OCYBUGK8jb3OYK8I3tGOrNhYauPVIGwil9cVPyjPk ubZ1EcIpHOGK5vgxRUYfMWS0JXF0miWL2wL8YqbGFQGlMpWBN7h+9D9mRdza69weyA65 EGHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729929656; x=1730534456; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+af8JleH+HioQNHuV1xAco6oQtIB9NxtywL9TG2Js+Q=; b=Rv91T+Dq2pVuRfABHSnBNH/trXuHxoKIpPCxwbLGZu5Z5B7sMvMXL0Oa5g4FQUfD22 ZyTes6rod5ObQ8iC1ZuwMulypEYYM33dMygz6Dhcb2JhgQ6Kk56HZ8vd9dH1cvQzkCQO TaSBRXHnvcwwRXWRwmdhEOsthP7o/s1rMFXL41o5EuNnd/PRJ6ScROvbYr5M8fgHLFir Z/Uhvcq+zLxkGMIjHYFChy+TUCqe1UpKxuUisUAgikzDdXdnPhiS4x0xLLL27xsHbEXG VrMg4R5N2JejcmVWpzq4sOWpp2W9duMtTa+MwMkzCJEYTZpzZCTqOCfDtDtSStMI2E+D e/TA== X-Forwarded-Encrypted: i=1; AJvYcCUBPUrBPEPmkKiRhxl5puIhdaxmu2Ix+r3wKDJyZFVdCgCIlj1FdfKXHOp7DpXMG+bcHdt6xlo=@lists.denx.de X-Gm-Message-State: AOJu0YwrJSX1qufsOtdMYBAVcI7y89hQzsTx/XZ5SqiX1nSD8Jb+CGDv sUINbodxhz/4iL9A+x3cgn4GsIULJqDAN1y3wEoZP6sW5uHQ0ciu0UsL+7iGTTg= X-Received: by 2002:a17:907:7e91:b0:a99:403e:2578 with SMTP id a640c23a62f3a-a9de5c91d04mr175125966b.5.1729929655936; Sat, 26 Oct 2024 01:00:55 -0700 (PDT) Received: from hades.. (ppp176092143132.access.hol.gr. [176.92.143.132]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9b1f297204sm148280266b.116.2024.10.26.01.00.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 01:00:54 -0700 (PDT) From: Ilias Apalodimas To: xypron.glpk@gmx.de Cc: Ilias Apalodimas , Tom Rini , Masahisa Kojima , Joao Marcos Costa , Simon Glass , Raymond Mao , u-boot@lists.denx.de Subject: [PATCH] efi_loader: Remove unused diskid Date: Sat, 26 Oct 2024 11:00:49 +0300 Message-ID: <20241026080050.125214-1-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.43.0 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.8 at phobos.denx.de X-Virus-Status: Clean That variable is defined and assigned a value in two functions but it's never used. Signed-off-by: Ilias Apalodimas Reviewed-by: Heinrich Schuchardt --- lib/efi_loader/efi_disk.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/efi_loader/efi_disk.c b/lib/efi_loader/efi_disk.c index 93a9a5ac0250..1f3de0a23399 100644 --- a/lib/efi_loader/efi_disk.c +++ b/lib/efi_loader/efi_disk.c @@ -561,11 +561,9 @@ static int efi_disk_create_raw(struct udevice *dev, efi_handle_t agent_handle) { struct efi_disk_obj *disk; struct blk_desc *desc; - int diskid; efi_status_t ret; desc = dev_get_uclass_plat(dev); - diskid = desc->devnum; ret = efi_disk_add_dev(NULL, NULL, desc, NULL, 0, &disk, agent_handle); @@ -608,7 +606,6 @@ static int efi_disk_create_part(struct udevice *dev, efi_handle_t agent_handle) struct disk_part *part_data; struct disk_partition *info; unsigned int part; - int diskid; struct efi_handler *handler; struct efi_device_path *dp_parent; struct efi_disk_obj *disk; @@ -618,7 +615,6 @@ static int efi_disk_create_part(struct udevice *dev, efi_handle_t agent_handle) return -1; desc = dev_get_uclass_plat(dev_get_parent(dev)); - diskid = desc->devnum; part_data = dev_get_uclass_plat(dev); part = part_data->partnum;