OSDN Git Service

host-libusb: Remove unused variable
authorMiroslav Rezanina <mrezanin@redhat.com>
Wed, 9 Nov 2022 15:57:14 +0000 (10:57 -0500)
committerThomas Huth <thuth@redhat.com>
Fri, 11 Nov 2022 08:12:10 +0000 (09:12 +0100)
commit5ab8ba977d361ecb23cd42c1e5ecf2883e84de32
tree1b356e5e1be2610755ecde8537353f605cda0ea3
parent0f48c47c679bc29fceb3a67283ee3b78175524bf
host-libusb: Remove unused variable

Variable unconnected used in usb_host_auto_check function is only incremented
but never read as line where it is read was disabled since introducing the code.
This causes 'Unused but set variable' warning on Clang 15.0.1 compiler.

Removing the variable and disabled code to prevent the warning.

Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <00df0db69ff9167d38bac81f6d03281955bd861a.1668009030.git.mrezanin@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/usb/host-libusb.c