summaryrefslogtreecommitdiffstats
path: root/cli_classic.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli_classic.c')
-rw-r--r--cli_classic.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/cli_classic.c b/cli_classic.c
index fc91989e9..3b6fbf824 100644
--- a/cli_classic.c
+++ b/cli_classic.c
@@ -519,12 +519,12 @@ int main(int argc, char *argv[])
}
msg_gdbg("\n");
- if (layoutfile && read_romlayout(layoutfile)) {
+ if (layoutfile && layout_from_file(&layout, layoutfile)) {
ret = 1;
goto out;
}
- if (!ifd && !fmap && process_include_args(get_global_layout(), include_args)) {
+ if (!ifd && !fmap && process_include_args(layout, include_args)) {
ret = 1;
goto out;
}
@@ -716,9 +716,7 @@ int main(int argc, char *argv[])
goto out_shutdown;
}
- if (layoutfile) {
- layout = get_global_layout();
- } else if (ifd && (flashrom_layout_read_from_ifd(&layout, fill_flash, NULL, 0) ||
+ if (ifd && (flashrom_layout_read_from_ifd(&layout, fill_flash, NULL, 0) ||
process_include_args(layout, include_args))) {
ret = 1;
goto out_shutdown;