diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2013-05-27 00:37:30 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-06-07 14:17:01 -0400 |
commit | a0ba279ac6b6b83b48dee609d7a34fc29b520ebc (patch) | |
tree | 57674579ed66013cc92c952817fc3958dd33fc20 /fs/ubifs | |
parent | 12d7a474204a667a7f94e3904e5d4062e3115894 (diff) | |
download | u-boot-imx-a0ba279ac6b6b83b48dee609d7a34fc29b520ebc.zip u-boot-imx-a0ba279ac6b6b83b48dee609d7a34fc29b520ebc.tar.gz u-boot-imx-a0ba279ac6b6b83b48dee609d7a34fc29b520ebc.tar.bz2 |
generic_board: reduce the redundancy of gd_t struct members
This commit refactors common/board_f.c and common/board_r.c
in order to delete the dest_addr and dest_addr_sp from
gd_t struct.
As mentioned as follows in include/asm-generic/global_data.h,
/* TODO: is this the same as relocaddr, or something else? */
unsigned long dest_addr; /* Post-relocation address of U-Boot */
dest_addr is the same as relocaddr.
Likewise, dest_addr_sp is the same as start_addr_sp.
It seemed dest_addr/dest_addr_sp was used only as a scratch variable
to calculate relocaddr/start_addr_sp, respectively.
With a little refactoring, we can delete dest_addr and dest_addr_sp.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'fs/ubifs')
0 files changed, 0 insertions, 0 deletions