Commit a63aec54a42403e1bc1249f10237adb0ad0a0967
1 parent
139e1875d3
Exists in
master
and in
54 other branches
post/lib_powerpc/multi.c: make checkpatch clean
Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Anatolij Gustschin <agust@denx.de> Cc: Stefan Roese <sr@denx.de> Cc: Kumar Gala <galak@kernel.crashing.org> Cc: Kim Phillips <kim.phillips@freescale.com> Cc: Andy Fleming <afleming@gmail.com> Acked-by: Anatolij Gustschin <agust@denx.de>
Showing 1 changed file with 24 additions and 29 deletions Side-by-side Diff
post/lib_powerpc/multi.c
... | ... | @@ -38,45 +38,40 @@ |
38 | 38 | |
39 | 39 | #if CONFIG_POST & CONFIG_SYS_POST_CPU |
40 | 40 | |
41 | -extern void cpu_post_exec_02 (ulong *code, ulong op1, ulong op2); | |
41 | +extern void cpu_post_exec_02(ulong *code, ulong op1, ulong op2); | |
42 | 42 | |
43 | -int cpu_post_test_multi (void) | |
43 | +int cpu_post_test_multi(void) | |
44 | 44 | { |
45 | - int ret = 0; | |
46 | - unsigned int i; | |
47 | - int flag = disable_interrupts(); | |
45 | + int ret = 0; | |
46 | + unsigned int i; | |
47 | + int flag = disable_interrupts(); | |
48 | 48 | |
49 | - if (ret == 0) | |
50 | - { | |
51 | - ulong src [26], dst [26]; | |
49 | + if (ret == 0) { | |
50 | + ulong src[26], dst[26]; | |
52 | 51 | |
53 | - ulong code[] = | |
54 | - { | |
55 | - ASM_LMW(5, 3, 0), | |
56 | - ASM_STMW(5, 4, 0), | |
57 | - ASM_BLR, | |
58 | - }; | |
52 | + ulong code[] = { | |
53 | + ASM_LMW(5, 3, 0), | |
54 | + ASM_STMW(5, 4, 0), | |
55 | + ASM_BLR, | |
56 | + }; | |
59 | 57 | |
60 | - for (i = 0; i < ARRAY_SIZE(src); ++i) | |
61 | - { | |
62 | - src[i] = i; | |
63 | - dst[i] = 0; | |
64 | - } | |
58 | + for (i = 0; i < ARRAY_SIZE(src); ++i) { | |
59 | + src[i] = i; | |
60 | + dst[i] = 0; | |
61 | + } | |
65 | 62 | |
66 | - cpu_post_exec_02(code, (ulong)src, (ulong)dst); | |
63 | + cpu_post_exec_02(code, (ulong) src, (ulong) dst); | |
67 | 64 | |
68 | - ret = memcmp(src, dst, sizeof(dst)) == 0 ? 0 : -1; | |
69 | - } | |
65 | + ret = memcmp(src, dst, sizeof(dst)) == 0 ? 0 : -1; | |
66 | + } | |
70 | 67 | |
71 | - if (ret != 0) | |
72 | - { | |
73 | - post_log ("Error at multi test !\n"); | |
74 | - } | |
68 | + if (ret != 0) | |
69 | + post_log("Error at multi test !\n"); | |
75 | 70 | |
76 | - if (flag) | |
77 | - enable_interrupts(); | |
71 | + if (flag) | |
72 | + enable_interrupts(); | |
78 | 73 | |
79 | - return ret; | |
74 | + return ret; | |
80 | 75 | } |
81 | 76 | |
82 | 77 | #endif |