]> git.sur5r.net Git - u-boot/blobdiff - env/sata.c
Merge branch 'master' of git://git.denx.de/u-boot-sunxi
[u-boot] / env / sata.c
index a77029774e1f5f46baa09ce09abc18d13f1bde77..e5715e6d51eb324842233cdd385b463de1ddea51 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2010-2016 Freescale Semiconductor, Inc.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 /* #define DEBUG */
@@ -24,8 +23,6 @@
 #error CONFIG_ENV_OFFSET or CONFIG_ENV_SIZE not defined
 #endif
 
-DECLARE_GLOBAL_DATA_PTR;
-
 __weak int sata_get_env_dev(void)
 {
        return CONFIG_SYS_SATA_ENV_DEV;
@@ -113,9 +110,7 @@ static void env_sata_load(void)
                return -EIO;
        }
 
-       env_import(buf, 1);
-
-       return 0;
+       return env_import(buf, 1);
 }
 
 U_BOOT_ENV_LOCATION(sata) = {