mirror of
https://github.com/OpenAMP/libmetal.git
synced 2026-09-23 10:43:49 +08:00
test: linux: irq: cleanup before return
Finish cleaning up before return even if the IRQ test passed. Signed-off-by: Wendy Liang <wendy.liang@xilinx.com>
This commit is contained in:
@@ -78,7 +78,6 @@ static int irq(void)
|
||||
metal_irq_unregister(tst_irq[0]);
|
||||
metal_irq_unregister(tst_irq[1]);
|
||||
|
||||
return 0;
|
||||
out:
|
||||
for (i = 0; i < 2; i++) {
|
||||
close(tst_irq[i]);
|
||||
|
||||
Reference in New Issue
Block a user