Don't negate the return value of arm_smmu_find_sme() if it's already negative.
Signed-off-by: Andrea Bastoni <[email protected]> --- hypervisor/arch/arm64/smmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/arch/arm64/smmu.c b/hypervisor/arch/arm64/smmu.c index 7266fdb6..26d5024a 100644 --- a/hypervisor/arch/arm64/smmu.c +++ b/hypervisor/arch/arm64/smmu.c @@ -431,7 +431,7 @@ static int arm_smmu_cell_init(struct cell *cell) for_each_stream_id(sid, cell->config, n) { ret = arm_smmu_find_sme(sid, smmu); if (ret < 0) - return trace_error(-ret); + return trace_error(ret); idx = ret; printk("Assigning StreamID 0x%x to cell \"%s\"\n", -- 2.28.0 -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/20201021145404.100463-27-andrea.bastoni%40tum.de.
