]> git.proxmox.com Git - mirror_qemu.git/commit
usb: ohci: make num_ports to an unsinged integer
authorLi Qiang <liq3ea@gmail.com>
Tue, 23 Oct 2018 03:00:18 +0000 (20:00 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 29 Oct 2018 09:25:12 +0000 (10:25 +0100)
commitb9a3a4f206019862575bd4f9cb6c1b6b1933f8fb
tree5551e172ab9c34a18c288ba434bb415374095bba
parentb312532fd03413d0e6ae6767ec793a3e30f487b8
usb: ohci: make num_ports to an unsinged integer

This can avoid setting OCHIState.num_ports to a negative num.

Signed-off-by: Li Qiang <liq3ea@gmail.com>
Message-id: 1540263618-18344-1-git-send-email-liq3ea@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-ohci.c