mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-16 04:21:07 +00:00
usb: Cleanup redundant if condition
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
This commit is contained in:
parent
165411f0c2
commit
47717a90cf
@ -86,7 +86,7 @@ sub get_usb_devices {
|
||||
if (defined($d->{host})) {
|
||||
my $hostdevice = parse_usb_device($d->{host});
|
||||
$hostdevice->{usb3} = $d->{usb3};
|
||||
if (defined($hostdevice->{spice}) && $hostdevice->{spice}) {
|
||||
if ($hostdevice->{spice}) {
|
||||
# usb redir support for spice, currently no usb3
|
||||
push @$devices, '-chardev', "spicevmc,id=usbredirchardev$i,name=usbredir";
|
||||
push @$devices, '-device', "usb-redir,chardev=usbredirchardev$i,id=usbredirdev$i,bus=ehci.0";
|
||||
|
Loading…
Reference in New Issue
Block a user