From e59febd74754da1758ec12de429c9c8ca0419eeb Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Mon, 4 Jun 2007 17:53:42 +0000 Subject: [PATCH] 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. --- sys/arm/at91/uart_cpu_at91rm9200usart.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/arm/at91/uart_cpu_at91rm9200usart.c b/sys/arm/at91/uart_cpu_at91rm9200usart.c index 459badbd140..45254af6b78 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); }