From: Holger Dengler Date: Thu, 20 Jul 2017 08:10:55 +0000 (+0200) Subject: net: Fix compile failure in net.c X-Git-Tag: v2017.09-rc2~95^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=66c89ee31b778a3c45b63b4d39ada2c6b5a2844a;p=platform%2Fkernel%2Fu-boot.git net: Fix compile failure in net.c Add missing "defined" statement to fix the compile failures. Signed-off-by: Holger Dengler Acked-by: Joe Hershberger --- 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),