From: Marek Vasut Date: Wed, 25 Mar 2026 01:07:12 +0000 (+0100) Subject: net: bootp: Drop unused code X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d63e58c5f030785c17607f00cbec354e6d84e733;p=thirdparty%2Fu-boot.git net: bootp: Drop unused code This code is surely unused and there are not even commented out references to the function name. Drop the code. Signed-off-by: Marek Vasut Reviewed-by: Heiko Schocher Reviewed-by: Kory Maincent Reviewed-by: Ilias Apalodimas --- diff --git a/net/bootp.c b/net/bootp.c index 1d905a01a47..8976936b184 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -87,23 +87,6 @@ static u8 dhcp_option_overload; #define OVERLOAD_SNAME 2 static void dhcp_handler(uchar *pkt, unsigned dest, struct in_addr sip, unsigned src, unsigned len); - -/* For Debug */ -#if 0 -static char *dhcpmsg2str(int type) -{ - switch (type) { - case 1: return "DHCPDISCOVER"; break; - case 2: return "DHCPOFFER"; break; - case 3: return "DHCPREQUEST"; break; - case 4: return "DHCPDECLINE"; break; - case 5: return "DHCPACK"; break; - case 6: return "DHCPNACK"; break; - case 7: return "DHCPRELEASE"; break; - default: return "UNKNOWN/INVALID MSG TYPE"; break; - } -} -#endif #endif static void bootp_add_id(ulong id)