]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: Fix compile failure in net.c
authorHolger Dengler <dengler@linutronix.de>
Thu, 20 Jul 2017 08:10:55 +0000 (10:10 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 7 Aug 2017 20:18:31 +0000 (15:18 -0500)
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>
net/net.c

index 6e678770fa9dc7dbdbe6039173622c39d28a0107..2268890ab54e7bd6ac0ef104212570f4b45b3402 100644 (file)
--- 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),