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:
17
post/post.c
17
post/post.c
@@ -48,10 +48,9 @@ int post_init_f(void)
|
|||||||
for (i = 0; i < post_list_size; i++) {
|
for (i = 0; i < post_list_size; i++) {
|
||||||
struct post_test *test = post_list + i;
|
struct post_test *test = post_list + i;
|
||||||
|
|
||||||
if (test->init_f && test->init_f()) {
|
if (test->init_f && test->init_f())
|
||||||
res = -1;
|
res = -1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
gd->post_init_f_time = post_time_ms(0);
|
gd->post_init_f_time = post_time_ms(0);
|
||||||
if (!gd->post_init_f_time)
|
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)
|
if (getenv_f(var[i], list, sizeof(list)) <= 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (j = 0; j < post_list_size; j++) {
|
for (j = 0; j < post_list_size; j++)
|
||||||
test_flags[j] &= ~flag[i];
|
test_flags[j] &= ~flag[i];
|
||||||
}
|
|
||||||
|
|
||||||
last = 0;
|
last = 0;
|
||||||
name = list;
|
name = list;
|
||||||
@@ -286,8 +284,7 @@ static int post_run_single(struct post_test *test,
|
|||||||
if ((*test->test)(flags) == 0) {
|
if ((*test->test)(flags) == 0) {
|
||||||
post_log_mark_succ(test->testid);
|
post_log_mark_succ(test->testid);
|
||||||
show_post_progress(i, POST_AFTER, POST_PASSED);
|
show_post_progress(i, POST_AFTER, POST_PASSED);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
show_post_progress(i, POST_AFTER, POST_FAILED);
|
show_post_progress(i, POST_AFTER, POST_FAILED);
|
||||||
if (test_flags & POST_CRITICAL)
|
if (test_flags & POST_CRITICAL)
|
||||||
gd->flags |= GD_FLG_POSTFAIL;
|
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();
|
post_bootmode_test_off();
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
@@ -411,13 +407,12 @@ int post_info (char *name)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i < post_list_size) {
|
if (i < post_list_size)
|
||||||
return post_info_single(post_list + i, 1);
|
return post_info_single(post_list + i, 1);
|
||||||
} else {
|
else
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
int post_log(char *format, ...)
|
int post_log(char *format, ...)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user