[U-Boot] [PATCH 1/2] post/post.c: CodingStyle cleanup
Marek Vasut
marek.vasut at gmail.com
Sun Oct 30 00:38:14 CEST 2011
> Make checkpatch-clean..
>
> Signed-off-by: Wolfgang Denk <wd at denx.de>
> ---
> post/post.c | 59
> +++++++++++++++++++++++++++-------------------------------- 1 files
> changed, 27 insertions(+), 32 deletions(-)
>
[...]
> if (test->cmd) {
> - addr = (ulong) (test->cmd) + gd->reloc_off;
> + addr = (ulong)(test->cmd) + gd->reloc_off;
> test->cmd = (char *)addr;
> }
>
> if (test->desc) {
> - addr = (ulong) (test->desc) + gd->reloc_off;
> + addr = (ulong)(test->desc) + gd->reloc_off;
> test->desc = (char *)addr;
> }
>
> if (test->test) {
> - addr = (ulong) (test->test) + gd->reloc_off;
> + addr = (ulong)(test->test) + gd->reloc_off;
> test->test = (int (*)(int flags)) addr;
> }
>
> if (test->init_f) {
> - addr = (ulong) (test->init_f) + gd->reloc_off;
> + addr = (ulong)(test->init_f) + gd->reloc_off;
> test->init_f = (int (*)(void)) addr;
> }
>
> if (test->reloc) {
> - addr = (ulong) (test->reloc) + gd->reloc_off;
> + addr = (ulong)(test->reloc) + gd->reloc_off;
The cast here doesn't seem right maybe ? :-(
Cheers
More information about the U-Boot
mailing list