Skip to content
Snippets Groups Projects
Commit 82953328 authored by Thomas Chou's avatar Thomas Chou Committed by Joe Hershberger
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment