diff options
author | Wei Yang <weiyang@linux.vnet.ibm.com> | 2014-12-02 14:24:14 +0800 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2014-12-02 17:41:47 +1100 |
commit | 7f4d2121217d562f541e8c4b008141d9880a9f6d (patch) | |
tree | d881a25a91fca5224dc145969198cd731edd12fc /core | |
parent | 965481316956f7c86465aeb904d57b9ac9367a29 (diff) | |
download | skiboot-7f4d2121217d562f541e8c4b008141d9880a9f6d.zip skiboot-7f4d2121217d562f541e8c4b008141d9880a9f6d.tar.gz skiboot-7f4d2121217d562f541e8c4b008141d9880a9f6d.tar.bz2 |
core/init: make fdt a local variable
Currently there is a file scope variable fdt, which is just used in
load_and_boot_kernel(). Since no other user, it is not necessary to define it
as a file scope variable.
This patch makes it a local variable in the function.
Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/init.c b/core/init.c index 6eeaa0d..2c7e30c 100644 --- a/core/init.c +++ b/core/init.c @@ -54,7 +54,6 @@ enum proc_gen proc_gen; static uint64_t kernel_entry; static bool kernel_32bit; -static void *fdt; struct debug_descriptor debug_descriptor = { .eye_catcher = "OPALdbug", @@ -335,6 +334,7 @@ void __noreturn load_and_boot_kernel(bool is_reboot) { const struct dt_property *memprop; uint64_t mem_top; + void *fdt; memprop = dt_find_property(dt_root, DT_PRIVATE "maxmem"); if (memprop) |