This is not called as a handler, so don't name it that way Signed-off-by: Joe Hershberger <joe.hershber...@ni.com> Cc: Joe Hershberger <joe.hershber...@gmail.com> Cc: Simon Glass <s...@chromium.org> Cc: Mike Frysinger <vap...@gentoo.org> --- Changes for v2: - Split from "Improve variable names and code readability"
net/cdp.c | 2 +- net/cdp.h | 2 +- net/net.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/net/cdp.c b/net/cdp.c index 6be6665..5c4b3e8 100644 --- a/net/cdp.c +++ b/net/cdp.c @@ -245,7 +245,7 @@ CDPDummyHandler(uchar *pkt, unsigned dest, IPaddr_t sip, unsigned src, } void -CDPHandler(const uchar *pkt, unsigned len) +CDPReceive(const uchar *pkt, unsigned len) { const uchar *t; const ushort *ss; diff --git a/net/cdp.h b/net/cdp.h index 93bc461..7ec5c70 100644 --- a/net/cdp.h +++ b/net/cdp.h @@ -14,7 +14,7 @@ #define __CDP_H__ void CDPStart(void); -void CDPHandler(const uchar *pkt, unsigned len); +void CDPReceive(const uchar *pkt, unsigned len); #endif /* __CDP_H__ */ #endif diff --git a/net/net.c b/net/net.c index aa1ae05..4736ba1 100644 --- a/net/net.c +++ b/net/net.c @@ -943,7 +943,7 @@ NetReceive(uchar *inpkt, int len) #if defined(CONFIG_CMD_CDP) if (iscdp) { - CDPHandler((uchar *)ip, len); + CDPReceive((uchar *)ip, len); return; } #endif -- 1.6.0.2 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot