summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2007-06-04 17:53:42 +0000
committermarcel <marcel@FreeBSD.org>2007-06-04 17:53:42 +0000
commitc118c8a64b9deccf7562b4b423b46ea2c9e36f18 (patch)
tree573af9b742c2ac4f4feda2d024c20d7c4ed754c7 /sys
parent3f6ea62ed68bce077dc7b76fe5c665791bb0c063 (diff)
downloadFreeBSD-src-c118c8a64b9deccf7562b4b423b46ea2c9e36f18.zip
FreeBSD-src-c118c8a64b9deccf7562b4b423b46ea2c9e36f18.tar.gz
Revert to the previous version where the return value of uart_getenv()
is being ignored. It's optional and the lack of environment variable is not an error condition.
Diffstat (limited to 'sys')
-rw-r--r--sys/arm/at91/uart_cpu_at91rm9200usart.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arm/at91/uart_cpu_at91rm9200usart.c b/sys/arm/at91/uart_cpu_at91rm9200usart.c
index 459badb..45254af 100644
--- a/sys/arm/at91/uart_cpu_at91rm9200usart.c
+++ b/sys/arm/at91/uart_cpu_at91rm9200usart.c
@@ -80,5 +80,6 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di)
uart_bus_space_io = &at91_bs_tag;
uart_bus_space_mem = NULL;
/* Check the environment for overrides */
- return (uart_getenv(devtype, di, class));
+ uart_getenv(devtype, di, class);
+ return (0);
}
OpenPOWER on IntegriCloud