From patchwork Thu Mar 6 14:25:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 870823 Delivered-To: patch@linaro.org Received: by 2002:ab3:6e57:0:b0:290:25b2:841c with SMTP id w23csp455676ltm; Thu, 6 Mar 2025 06:26:26 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWFIoto8GsTn+0pNKFYTCl+ieHaBcJOukFrL1RJgbVui7cx1vYQ36MwkBr8+bBAtYMdnD3zmg==@linaro.org X-Google-Smtp-Source: AGHT+IHOLoVrNRdEwUQb+c8XNhlamAwhQyxOYo4fQYcBBDbg4JkCzrf1szAHQigbaX4q3ntt6ddE X-Received: by 2002:a17:90b:2dca:b0:2f9:9e64:37b1 with SMTP id 98e67ed59e1d1-2ff49814592mr11713034a91.28.1741271186605; Thu, 06 Mar 2025 06:26:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1741271186; cv=none; d=google.com; s=arc-20240605; b=Mp1P6Kuv3Fe6HseIsIxI0KLq+2v6tTIc4rEONvtDibbshwQfTLWMEapRAUX7SD4amP tcoXSUqa6MzDHoALNR0peGE5U2C7bugnuKu3gf4lO9AOcqFK8LVHACrl9PKIYV6miokx pehyejePFYZgxd4fheCO8IjeqQ1gDM10Kqm2Ofed4suHzaITKjFoxCKlzle+XPKoY8Ti Py1qu49Z5hNR4UHnPUCXlAfxXDFBQ5ImsmAkmVpe5J2/DIBGghcLf7HOgBKH9LyhXDqD ztFieFoTV9O36EBpyZyTnmiKoW6vP1kS8tIXzV2uDcc/XxzbEJuM3Rak4dInHi5nRIUC J3Iw== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=PcXFUhHXxwpQjhY9ngA2fYwAh5PvWFvp9h7Czg8HhxM=; fh=ZRg9BJLqT4jwel/4wcHp6uiz6+1UQkTgKs/2H+3t27M=; b=WR0gvEnXEdoto59byYEF5IxRVBw870ejuID31JrtUCibXMc6QZPIRJ/MDtFAKKIjis 0anzp+fgrx51tWhK4NQCCfMaUBBrbVjVCK3+oUH1BMqcOcvRYrdvHW4IQQPD1ILksLsG auUiH7rcdEBavw2tIWvogcM+2phrhluxicvMQh/2HGwWxai3ewOWbrMXgLqaFMblvU4d RgjBRGvcH62F1c41D3e5eFr2H2sAe2gXTcdfAFhZFu3w8p90aZV5s9MUHTF8bTog0ZuA MtBFNt8YK2cF0sdykBcGR+kj9FHPlE+iwosqA2R3ZnTE2jSSalU6u4x0fcyNyBwPclXf hglQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YalLrXMo; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2ff693eb409si2169008a91.153.2025.03.06.06.26.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Mar 2025 06:26:26 -0800 (PST) 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=YalLrXMo; 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; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 563F68142D; Thu, 6 Mar 2025 15:26:05 +0100 (CET) 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="YalLrXMo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 89A3781433; Thu, 6 Mar 2025 15:26:03 +0100 (CET) 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-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) (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 8F9AF8142D for ; Thu, 6 Mar 2025 15:26:01 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jerome.forissier@linaro.org Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-388cae9eb9fso378701f8f.3 for ; Thu, 06 Mar 2025 06:26:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741271161; x=1741875961; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=PcXFUhHXxwpQjhY9ngA2fYwAh5PvWFvp9h7Czg8HhxM=; b=YalLrXMoohErmLyz3pOLAwJYOflNphpcCacb6b/9JrDWeanc2Fzl6SeOVxHoj+WXKx W9nFzvjypcpBxkHfBEZ1BtohTs5nbbVEYYR8tKBcSZK5zOZnH/M+eqXSpoeipUc2Ni4L H6L1xElb4y5DZYwY6Qa55Z4jry4ZoDPYIkdkedvJpK185ke1KVuMhu/NJzrYBzJimPgB vuxFNPWk9kJf7hZ8NiIMUOKsV+6PQpcZw7azuPalklzCFTVOv5ZfYKnhVQrM9LOUqsBm I+ePzGN9GKdhGDp5Osd4sSBkTBblN+xWLiPJZtgWju4xxt7nDhJF4OpGtHYwoe2Rz+0q jU0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741271161; x=1741875961; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PcXFUhHXxwpQjhY9ngA2fYwAh5PvWFvp9h7Czg8HhxM=; b=Cs5QbiJmmidUubqDYpRvDHAQOXhl7esiKzYAIZHZp2GAsBZqjSnAtp1fm+OZPE8pAf n0158v9jpdMF8EisUx/zWWW47cZpVwsHEUTkD45VXWIqkxjmWW9sSnW6oVeymZOCU/y7 Ij1Sp60cRQpnX43Uc0Kpn0d6cXWc7iMHBzOkgFQG4w3oQx/Zs7tz5Y8xiqgyRuqcXVJD p54gjATh797LO9C1lQJU8CyhDJK+zUwAEgyOe6GMuvdSVwF0RJySG66Ma9AS+6ku065G GpMuNfUXVSMqaXtSP75qRVESOrhsg9PBETfSXBZ/MbRfRBA8SyFikZtzIodgWuoGSSwA tjYg== X-Gm-Message-State: AOJu0YzhMJGky/ESIeN9pu4EKI1RTKNXxN7mnvXzhj0/0cMX4O2wcs0A 3ydL4eXwCCDVVCiaNkBCfyXrlgU6VmpPxErbrSBkEkhp2U1T72Buw20pI09mxZTnD9gN1E7bpLB p X-Gm-Gg: ASbGncs5yWXeVgR26G2gQKGItpXCxkImHuPYQpKfrBI3Us3i6s0mlWMnbsIBteMwUb9 YlLfXp4xvICWeDEKJxBUgPzF3a0stn699JELFHVoPEm/V/SK6OzrjHONAZEvcpi8OVC9Rw1Qjda YVeDEXWT0ARuwQsRNJ/oAT7ii1fEHhXV7+OZKX2vz21lk+we2cLhDwXSR2rQOJzv4/Bla7/1emB FGkoBjF18ALHWfX0WBBsMo4HTpG06NOOtcFPRAAYOXkH1mf47gBel4VC7mcmOWYIYxxjKKLLiER AXYSaEE/YlNQ1U9Sz3h27IfZEkeLj8Ovt8XxxfCkKwIhGqUm6zYdsA== X-Received: by 2002:a5d:64c7:0:b0:391:2c09:bdef with SMTP id ffacd0b85a97d-3912c09bfdfmr1454266f8f.30.1741271160856; Thu, 06 Mar 2025 06:26:00 -0800 (PST) Received: from builder.. ([2a01:e0a:3cb:7bb0:af71:dfb2:66ef:80c3]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3912bfdfad7sm2181543f8f.26.2025.03.06.06.26.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Mar 2025 06:26:00 -0800 (PST) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Jerome Forissier , Tom Rini , Joe Hershberger , Ramon Fried , Adriano Cordova Subject: [PATCH 3/3] net: lwip: remove net_lwip_remove_netif() Date: Thu, 6 Mar 2025 15:25:21 +0100 Message-ID: <20250306142525.3079189-4-jerome.forissier@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250306142525.3079189-1-jerome.forissier@linaro.org> References: <20250306142525.3079189-1-jerome.forissier@linaro.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.8 at phobos.denx.de X-Virus-Status: Clean net_lwip_remove_netif() is not used, remove it. Signed-off-by: Jerome Forissier --- include/net-lwip.h | 1 - net/lwip/net-lwip.c | 6 ------ 2 files changed, 7 deletions(-) diff --git a/include/net-lwip.h b/include/net-lwip.h index 58ff2bb2d43..36df78d61db 100644 --- a/include/net-lwip.h +++ b/include/net-lwip.h @@ -13,7 +13,6 @@ enum proto_t { void net_lwip_set_current(void); struct netif *net_lwip_netif(struct udevice *udev); struct netif *net_lwip_netif_noip(struct udevice *udev); -void net_lwip_remove_netif(struct netif *netif); struct netif *net_lwip_get_netif(void); int net_lwip_rx(struct udevice *udev, struct netif *netif); diff --git a/net/lwip/net-lwip.c b/net/lwip/net-lwip.c index 77f16f8af9c..f50cfbf27fa 100644 --- a/net/lwip/net-lwip.c +++ b/net/lwip/net-lwip.c @@ -214,12 +214,6 @@ struct netif *net_lwip_netif_noip(struct udevice *udev) return get_or_create_netif(udev, false); } -void net_lwip_remove_netif(struct netif *netif) -{ - netif_remove(netif); - free(netif); -} - int net_init(void) { eth_set_current();