Gerd Hoffmann c590fe3aa2 xhci: move sanity checks
The v variable goes negative for reg < 0x20.  Reorder the code
to first sanity check then calculate v and assign intr to make
sanity checkers happy.

Buglink: https://bugs.launchpad.net/qemu/+bug/1902112
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20201105134112.25119-7-kraxel@redhat.com
2020-11-16 09:11:21 +01:00
..
2020-10-27 11:10:44 +00:00
2020-11-03 07:19:26 -05:00
2020-11-02 11:56:55 +00:00
2020-11-10 11:03:47 +00:00
2020-10-29 11:40:04 +00:00
2020-11-16 09:11:21 +01:00