Skip to content
Permalink
Browse files

net: slip: allow compilation without CONFIG_NET_LLDP

Without this change compilation of the SLIP module would fail if LLDP
wasn't enabled. There is also no need to include net/lldp.h explicitly
as net/ethernet.h will include it conditionally if CONFIG_NET_LLDP is
defined.

Signed-off-by: Sören Tempel <soeren+git@soeren-tempel.net>
  • Loading branch information...
nmeum authored and jukkar committed Apr 24, 2019
1 parent 5311a7d commit 7a824d8b946aca03744a1fe6c1b125a68501ad0f
Showing with 2 additions and 1 deletion.
  1. +2 −1 drivers/net/slip.c
@@ -32,7 +32,6 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <net/net_core.h>
#include <console/uart_pipe.h>
#include <net/ethernet.h>
#include <net/lldp.h>

#define SLIP_END 0300
#define SLIP_ESC 0333
@@ -397,7 +396,9 @@ static void slip_iface_init(struct net_if *iface)

ethernet_init(iface);

#if defined(CONFIG_NET_LLDP)
net_lldp_set_lldpdu(iface);
#endif

if (slip->init_done) {
return;

0 comments on commit 7a824d8

Please sign in to comment.
You can’t perform that action at this time.