]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
net: bootp: Drop unused code
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 25 Mar 2026 01:07:12 +0000 (02:07 +0100)
committerJerome Forissier <jerome.forissier@arm.com>
Tue, 31 Mar 2026 14:54:49 +0000 (16:54 +0200)
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 <marek.vasut+renesas@mailbox.org>
Reviewed-by: Heiko Schocher <hs@nabladev.com>
Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
net/bootp.c

index 1d905a01a4784e9eeded435c61e872a071948f71..8976936b184497cc7937a499163a2413ecff3007 100644 (file)
@@ -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)