mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
hw/usb: Silence compiler warnings in USB code when compiling with -Wshadow
Rename variables or remove nested definitions where it makes sense, so that we can finally compile the USB code with "-Wshadow", too. Signed-off-by: Thomas Huth <thuth@redhat.com> Message-ID: <20231004130822.113343-1-thuth@redhat.com> Reviewed-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
0edc9e45f3
commit
e7121b1541
5 changed files with 14 additions and 14 deletions
|
@ -1010,7 +1010,7 @@ static int usb_host_open(USBHostDevice *s, libusb_device *dev, int hostfd)
|
|||
* Speeds are defined in linux/usb/ch9.h, file not included
|
||||
* due to name conflicts.
|
||||
*/
|
||||
int rc = ioctl(hostfd, USBDEVFS_GET_SPEED, NULL);
|
||||
rc = ioctl(hostfd, USBDEVFS_GET_SPEED, NULL);
|
||||
switch (rc) {
|
||||
case 1: /* low */
|
||||
libusb_speed = LIBUSB_SPEED_LOW;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue