mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
x86: Allow pirq_init() to return an error
This function can fail. In this case we should return the error rather than swallowing it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
412400abaa
commit
7e4be120e8
6 changed files with 18 additions and 19 deletions
|
@ -41,7 +41,5 @@ void reset_cpu(ulong addr)
|
|||
|
||||
int arch_misc_init(void)
|
||||
{
|
||||
pirq_init();
|
||||
|
||||
return 0;
|
||||
return pirq_init();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue