From: Thomas Chou Date: Tue, 25 Aug 2015 12:54:24 +0000 (+0800) Subject: net: protect status led access in bootp X-Git-Tag: v2016.01-rc1~154^2~26 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=829533287afbc2aff2b8c65eb0cbf8f8ee887ae2;p=oweals%2Fu-boot.git net: protect status led access in bootp This fixes the error when STATUS_LED_BOOT is not defined. Signed-off-by: Thomas Chou Acked-by: Joe Hershberger --- diff --git a/net/bootp.c b/net/bootp.c index defad73d1a..fbdc7cb3a3 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -349,7 +349,7 @@ static void bootp_handler(uchar *pkt, unsigned dest, struct in_addr sip, /* * Got a good BOOTP reply. Copy the data into our variables. */ -#ifdef CONFIG_STATUS_LED +#if defined(CONFIG_STATUS_LED) && defined(STATUS_LED_BOOT) status_led_set(STATUS_LED_BOOT, STATUS_LED_OFF); #endif