summaryrefslogtreecommitdiff
path: root/net/net.c
diff options
context:
space:
mode:
authorHolger Dengler <dengler@linutronix.de>2017-07-20 08:10:55 (GMT)
committerJoe Hershberger <joe.hershberger@ni.com>2017-08-07 20:18:31 (GMT)
commit66c89ee31b778a3c45b63b4d39ada2c6b5a2844a (patch)
tree83ea3854a00f1b636c79875d1091596c00b2f2e3 /net/net.c
parentd7e8ac6f45190b06be7783c34bfdc5d9577322a3 (diff)
downloadu-boot-fsl-qoriq-66c89ee31b778a3c45b63b4d39ada2c6b5a2844a.tar.xz
net: Fix compile failure in net.c
Add missing "defined" statement to fix the compile failures. Signed-off-by: Holger Dengler <dengler@linutronix.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net/net.c')
-rw-r--r--net/net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/net.c b/net/net.c
index 6e67877..2268890 100644
--- a/net/net.c
+++ b/net/net.c
@@ -489,7 +489,7 @@ restart:
cdp_start();
break;
#endif
-#if defined(CONFIG_NETCONSOLE) && !(CONFIG_SPL_BUILD)
+#if defined(CONFIG_NETCONSOLE) && !defined(CONFIG_SPL_BUILD)
case NETCONS:
nc_start();
break;
@@ -1258,7 +1258,7 @@ void net_process_received_packet(uchar *in_packet, int len)
}
#endif
-#if defined(CONFIG_NETCONSOLE) && !(CONFIG_SPL_BUILD)
+#if defined(CONFIG_NETCONSOLE) && !defined(CONFIG_SPL_BUILD)
nc_input_packet((uchar *)ip + IP_UDP_HDR_SIZE,
src_ip,
ntohs(ip->udp_dst),