[U-Boot] [PATCH] net: protect status led access in bootp

This fixes the error when STATUS_LED_BOOT is not defined.
Signed-off-by: Thomas Chou thomas@wytron.com.tw --- net/bootp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/bootp.c b/net/bootp.c index 43466af..ab17869 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

Hi Thomas,
On Tue, Aug 25, 2015 at 7:54 AM, Thomas Chou thomas@wytron.com.tw wrote:
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
Don't forget to Cc: the maintainer of the area you are patching.
Thanks, -Joe

On Tue, Aug 25, 2015 at 7:54 AM, Thomas Chou thomas@wytron.com.tw wrote:
This fixes the error when STATUS_LED_BOOT is not defined.
Signed-off-by: Thomas Chou thomas@wytron.com.tw
Applied to u-boot-net/master, thanks! -Joe
participants (2)
-
Joe Hershberger
-
Thomas Chou