Commit 82953328 authored by Thomas Chou's avatar Thomas Chou Committed by Joe Hershberger

net: protect status led access in bootp

This fixes the error when STATUS_LED_BOOT is not defined.
Signed-off-by: default avatarThomas Chou <thomas@wytron.com.tw>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent 214dc1da
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment