]> git.sur5r.net Git - u-boot/blobdiff - env/ubi.c
serial: ns16550: Add reset ctrl to driver
[u-boot] / env / ubi.c
index 72c7a7829e556fcc7d732b0acc6863d7bbdad409..d28247b34d32463899d4883e2490dc3ccee4a2b5 100644 (file)
--- a/env/ubi.c
+++ b/env/ubi.c
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (c) Copyright 2012 by National Instruments,
  *        Joe Hershberger <joe.hershberger@ni.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -163,9 +162,7 @@ static int env_ubi_load(void)
                return -EIO;
        }
 
-       env_import(buf, 1);
-
-       return 0;
+       return env_import(buf, 1);
 }
 #endif /* CONFIG_SYS_REDUNDAND_ENVIRONMENT */