|
From: | Richard Henderson |
Subject: | Re: [PATCH v3 17/18] hw/intc/sh_intc: Avoid using continue in loops |
Date: | Wed, 27 Oct 2021 17:58:56 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 10/27/21 2:54 PM, BALATON Zoltan wrote:
Instead of if !expr continue else do something it is more straight forward to say if expr then do something, especially if the action is just a few lines. Remove such uses of continue to make the code easier to follow. Signed-off-by: BALATON Zoltan<balaton@eik.bme.hu> --- hw/intc/sh_intc.c | 44 ++++++++++++++++++++------------------------ 1 file changed, 20 insertions(+), 24 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
[Prev in Thread] | Current Thread | [Next in Thread] |