post/post.c: CodingStyle cleanup

Make checkpatch-clean..

Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
This commit is contained in:
Wolfgang Denk 2011-10-29 09:42:22 +00:00
parent a2b92a655a
commit 50da837663
1 changed files with 27 additions and 32 deletions

View File

@ -48,10 +48,9 @@ int post_init_f(void)
for (i = 0; i < post_list_size; i++) {
struct post_test *test = post_list + i;
if (test->init_f && test->init_f()) {
if (test->init_f && test->init_f())
res = -1;
}
}
gd->post_init_f_time = post_time_ms(0);
if (!gd->post_init_f_time)
@ -202,9 +201,8 @@ static void post_get_env_flags(int *test_flags)
if (getenv_f(var[i], list, sizeof(list)) <= 0)
continue;
for (j = 0; j < post_list_size; j++) {
for (j = 0; j < post_list_size; j++)
test_flags[j] &= ~flag[i];
}
last = 0;
name = list;
@ -286,8 +284,7 @@ static int post_run_single(struct post_test *test,
if ((*test->test)(flags) == 0) {
post_log_mark_succ(test->testid);
show_post_progress(i, POST_AFTER, POST_PASSED);
}
else {
} else {
show_post_progress(i, POST_AFTER, POST_FAILED);
if (test_flags & POST_CRITICAL)
gd->flags |= GD_FLG_POSTFAIL;
@ -309,9 +306,8 @@ static int post_run_single(struct post_test *test,
}
}
if ((test_flags & POST_REBOOT) && !(flags & POST_MANUAL)) {
if ((test_flags & POST_REBOOT) && !(flags & POST_MANUAL))
post_bootmode_test_off();
}
return 0;
} else {
@ -411,13 +407,12 @@ int post_info (char *name)
break;
}
if (i < post_list_size) {
if (i < post_list_size)
return post_info_single(post_list + i, 1);
} else {
else
return -1;
}
}
}
int post_log(char *format, ...)
{