diff options
author | Simon Glass <sjg@chromium.org> | 2019-08-14 19:56:11 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2019-08-18 21:54:10 +0800 |
commit | fc7b9e16a04610b951a9d36abf41d80edb87e3e5 (patch) | |
tree | 360fad9748f8fc3d874655e2bde1b9ec7d366b75 | |
parent | 72b2465c6b897f7ac4a2a151f648dff9239b1cfe (diff) |
cbfs: Move declarations above functions
At present this file has a function at the top, above declarations. This
is normally avoided, so fix it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
-rw-r--r-- | fs/cbfs/cbfs.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/fs/cbfs/cbfs.c b/fs/cbfs/cbfs.c index af4d3c5e56..2a9edcc9a0 100644 --- a/fs/cbfs/cbfs.c +++ b/fs/cbfs/cbfs.c @@ -9,6 +9,11 @@ #include <asm/byteorder.h> enum cbfs_result file_cbfs_result; +static const u32 good_magic = 0x4f524243; +static const u8 good_file_magic[] = "LARCHIVE"; +static int initialized; +static struct cbfs_header cbfs_header; +static struct cbfs_cachenode *file_cache; const char *file_cbfs_error(void) { @@ -28,15 +33,6 @@ const char *file_cbfs_error(void) } } - -static const u32 good_magic = 0x4f524243; -static const u8 good_file_magic[] = "LARCHIVE"; - - -static int initialized; -static struct cbfs_header cbfs_header; -static struct cbfs_cachenode *file_cache; - /* Do endian conversion on the CBFS header structure. */ static void swap_header(struct cbfs_header *dest, struct cbfs_header *src) { |