qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 9/9] ui: Reduce nesting in hmp_change_vnc() slightly


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH 9/9] ui: Reduce nesting in hmp_change_vnc() slightly
Date: Thu, 1 Dec 2022 08:19:40 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.0

On 1/12/22 07:13, Markus Armbruster wrote:
Transform

     if (good) {
         do stuff
     } else {
         handle error
     }

to

     if (!good) {
         handle error
        return;
     }
     do stuff

Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
  ui/ui-hmp-cmds.c | 17 +++++++----------
  1 file changed, 7 insertions(+), 10 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]