projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
214dc1d
)
net: protect status led access in bootp
author
Thomas Chou
<thomas@wytron.com.tw>
Tue, 25 Aug 2015 12:54:24 +0000
(20:54 +0800)
committer
Joe Hershberger
<joe.hershberger@ni.com>
Wed, 28 Oct 2015 19:45:09 +0000
(14:45 -0500)
This fixes the error when STATUS_LED_BOOT is not defined.
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
net/bootp.c
patch
|
blob
|
history
diff --git
a/net/bootp.c
b/net/bootp.c
index defad73d1aa8a8b762d05c0cd1f9e6c4a628406d..fbdc7cb3a32899a8c3e6bde3b39a0b216c7da9b9 100644
(file)
--- 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.
*/
-#if
def CONFIG_STATUS_LED
+#if
defined(CONFIG_STATUS_LED) && defined(STATUS_LED_BOOT)
status_led_set(STATUS_LED_BOOT, STATUS_LED_OFF);
#endif