Re: [PATCH v5 4/6] hw/loongarch/virt: Eliminate error_propagate()

2025-03-23 Thread Markus Armbruster
Bibo Mao writes: > When there is an error, it is put into a local variable and then > propagated to somewhere else. Instead the error can be set right > away, error propagation can be removed. > > Signed-off-by: Bibo Mao Reviewed-by: Markus Armbruster

[PATCH v5 4/6] hw/loongarch/virt: Eliminate error_propagate()

2025-03-19 Thread Bibo Mao
When there is an error, it is put into a local variable and then propagated to somewhere else. Instead the error can be set right away, error propagation can be removed. Signed-off-by: Bibo Mao --- hw/loongarch/virt.c | 32 +++- 1 file changed, 11 insertions(+), 21 de