From patchwork Fri Aug 12 01:35:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1665757 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 (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=D3lfmMI3; 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 4M3mlj5jBKz9sFs for ; Fri, 12 Aug 2022 11:48:01 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CA972848A7; Fri, 12 Aug 2022 03:47:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="D3lfmMI3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B7DFD84AD3; Fri, 12 Aug 2022 03:39: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.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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-oa1-x2e.google.com (mail-oa1-x2e.google.com [IPv6:2001:4860:4864:20::2e]) (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 C831D84AA1 for ; Fri, 12 Aug 2022 03:35:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-10d845dcf92so23515806fac.12 for ; Thu, 11 Aug 2022 18:35:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=tY4uO6XIgZOrChf4KC5ODQSbsdScT8ETsNwbCxo6ggU=; b=D3lfmMI3vL0wPDGFwqwvOHr8NsdiydaEE98Xo1vKMc72oehMz1hVNnYB33NTugW47H dU/mh+yNj3l4XEo8xZJ3vDvpCTUrV4wdlzQ5ft2puEkep0+DWbMRXzvBheE5HdRhv992 FqwTc4WQA3DYPEffZMGidFLk5+NfJtTrNECQc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=tY4uO6XIgZOrChf4KC5ODQSbsdScT8ETsNwbCxo6ggU=; b=EHNwWp6bbihrjxcwco7HgQIlC/wx8e9URzIWtGNPZxBvrkSV3xQTNhmMNWKsjH46Fw oHckwn/ePWzNu8hu8z2hgUXyfz5Ub8xJdKIFBe/4VBI7m5Ae++r7M2a4PGTjQpwYAv74 0aEgco6L3yEpVTFnikPN6cX4mr1fJLs5r5L3UEOcjeWUXOdzsazouDf9OAjFBtQlvUDM lBqgeVb+TLZIqtU5k0HZVBbj2RWeRmOsKvGUngLW1n3n9Z07irHZttfu6EdcM6aQze9L eh4t/s0jtyz7EDvFqALVK2H5QmatFzxIhtYQo8G+/Qt/lELTdoTdD/hT33gTqltvB35n 55fQ== X-Gm-Message-State: ACgBeo1gnAa5HM+1qHVI7SRlqrat4dYROdeC6j7tGs9F5gH76ARrH6Oi oz5MJ3S/dLVHtEsxGRbGom1tagALN+kFYg== X-Google-Smtp-Source: AA6agR7FCxguJJOuQztpkYeeOn8HygtxDPA0tt7YpiTyuF0sM4/l4JtoYA28xpMxWKF3Uh0bry0KjA== X-Received: by 2002:a05:6870:5629:b0:10e:d664:d315 with SMTP id m41-20020a056870562900b0010ed664d315mr752624oao.260.1660268152095; Thu, 11 Aug 2022 18:35:52 -0700 (PDT) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id x21-20020a056870b41500b0010c5005d427sm158518oap.33.2022.08.11.18.35.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Aug 2022 18:35:51 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Heinrich Schuchardt , Simon Glass , AKASHI Takahiro , Alexander Graf , Ilias Apalodimas Subject: [PATCH v2 23/24] efi: Drop ifname field from struct efi_disk_obj Date: Thu, 11 Aug 2022 19:35:02 -0600 Message-Id: <20220812013503.1724919-24-sjg@chromium.org> X-Mailer: git-send-email 2.37.1.595.g718a3a8f04-goog In-Reply-To: <20220812013503.1724919-1-sjg@chromium.org> References: <20220812013503.1724919-1-sjg@chromium.org> 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 This is not used, so drop it. Suggested-by: AKASHI Takahiro Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to drop ifname field from struct efi_disk_obj lib/efi_loader/efi_disk.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/efi_loader/efi_disk.c b/lib/efi_loader/efi_disk.c index 2e905f61840..ad543bc117e 100644 --- a/lib/efi_loader/efi_disk.c +++ b/lib/efi_loader/efi_disk.c @@ -40,7 +40,6 @@ const efi_guid_t efi_system_partition_guid = PARTITION_SYSTEM_GUID; struct efi_disk_obj { struct efi_object header; struct efi_block_io ops; - const char *ifname; int dev_index; struct efi_block_io_media media; struct efi_device_path *dp; @@ -476,7 +475,6 @@ static efi_status_t efi_disk_add_dev( return ret; } diskobj->ops = block_io_disk_template; - diskobj->ifname = if_typename; diskobj->dev_index = dev_index; /* Fill in EFI IO Media info (for read/write callbacks) */