net: protect status led access in bootp
PATCH 1/1 net: protect status led access in bootp
This fixes the error when STATUS_LED_BOOT is not defined.
Signed-off-by Thomas Chou <[email protected]>
--- net/bootp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/bootp.c +1 -1
@@ -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
Signature · 1 line
2.1.4
PATCH 1/1 net: protect status led access in bootp
Hi Thomas,
Quoted 3 lines · Thomas Chou
This fixes the error when
STATUS_LED_BOOTis not defined.Signed-off-by Thomas Chou <[email protected]>
Acked-by Joe Hershberger <[email protected]>
Don't forget to Cc: the maintainer of the area you are patching.
Thanks,
-Joe
PATCH 1/1 net: protect status led access in bootp
In reply to Thomas ChouQuoted 3 lines · Thomas Chou
This fixes the error when
STATUS_LED_BOOTis not defined.Signed-off-by Thomas Chou <[email protected]>
Applied to u-boot-net/master, thanks!
-Joe