diff options
author | Thomas Chou <thomas@wytron.com.tw> | 2015-08-25 20:54:24 +0800 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2015-10-28 14:45:09 -0500 |
commit | 829533287afbc2aff2b8c65eb0cbf8f8ee887ae2 (patch) | |
tree | f523565cab0806d3e1834d89a6ed9d31eae7db57 /net | |
parent | 214dc1da4aa90c40e653c4daa097290fd61b3f10 (diff) | |
download | u-boot-imx-829533287afbc2aff2b8c65eb0cbf8f8ee887ae2.zip u-boot-imx-829533287afbc2aff2b8c65eb0cbf8f8ee887ae2.tar.gz u-boot-imx-829533287afbc2aff2b8c65eb0cbf8f8ee887ae2.tar.bz2 |
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>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/bootp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bootp.c b/net/bootp.c index defad73..fbdc7cb 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 |