Merge tag 'u-boot-imx-20200623' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
[oweals/u-boot.git] / cmd / cbfs.c
index 8e91d4bb8c2e9db805f535ed10381563b19072c4..10c2c929c37489d493ba6602eefd56f6172a5b3d 100644 (file)
@@ -28,8 +28,7 @@ static int do_cbfs_init(struct cmd_tbl *cmdtp, int flag, int argc,
                        return 1;
                }
        }
-       file_cbfs_init(end_of_rom);
-       if (cbfs_get_result() != CBFS_SUCCESS) {
+       if (file_cbfs_init(end_of_rom)) {
                printf("%s.\n", file_cbfs_error());
                return 1;
        }