]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - net/cdp.c
net: Use new checksum functions
[karo-tx-uboot.git] / net / cdp.c
index fa924097ac8750f996c5a80d1719b851f7440593..2d8fa03a7e306d0b549a59ab8e25689496dcc1ac 100644 (file)
--- a/net/cdp.c
+++ b/net/cdp.c
@@ -6,6 +6,7 @@
  *     Copyright 2000 Roland Borde
  *     Copyright 2000 Paolo Scaffardi
  *     Copyright 2000-2002 Wolfgang Denk, wd@denx.de
+ *     SPDX-License-Identifier:        GPL-2.0
  */
 
 #include <common.h>
@@ -238,13 +239,6 @@ CDPTimeout(void)
                net_set_state(NETLOOP_SUCCESS);
 }
 
-static void
-CDPDummyHandler(uchar *pkt, unsigned dest, IPaddr_t sip, unsigned src,
-               unsigned len)
-{
-       /* nothing */
-}
-
 void cdp_receive(const uchar *pkt, unsigned len)
 {
        const uchar *t;
@@ -368,7 +362,6 @@ CDPStart(void)
        CDPApplianceVLAN = htons(-1);
 
        NetSetTimeout(CDP_TIMEOUT, CDPTimeout);
-       NetSetHandler(CDPDummyHandler);
 
        CDPSendTrigger();
 }