Stefan Hajnoczi 1d8d014e93 vhost: simplify vhost_dev_init() fail_busyloop label
Requiring a conditional for every goto is tedious:

  if (busyloop_timeout) {
      goto fail_busyloop;
  } else {
      goto fail;
  }

Move the conditional to into the fail_busyloop label so that it's safe
to jump to this label unconditionally.

This change makes the migrate_add_blocker() error case more consistent.
It jumped to fail_busyloop unconditionally whereas the memslots limits
error case was conditional.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20210222114931.272308-1-stefanha@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2021-03-02 09:16:18 -05:00
..
2021-01-22 18:26:40 +01:00
2021-01-12 21:19:02 +00:00
2020-12-10 12:15:18 -05:00
2020-12-10 12:15:18 -05:00
2020-12-10 12:15:07 -05:00
2021-01-08 15:13:38 +00:00
2020-12-10 12:15:18 -05:00
2021-02-20 12:36:19 +01:00
2020-12-10 12:15:08 -05:00
2021-01-01 22:57:15 +00:00
2020-12-10 12:15:06 -05:00
2021-02-21 12:12:18 +00:00
2020-12-10 12:15:08 -05:00
2020-12-10 12:15:18 -05:00
2021-02-11 11:50:14 +00:00
2021-02-08 15:15:32 +01:00
2021-02-05 08:52:58 -05:00