mirror of https://github.com/jetkvm/kvm.git
Remove unnecessary assignment when USB devices unchanged
Addresses PR #718 review comment - no need to assign config.UsbDevices when we've already verified the devices are equal.
This commit is contained in:
parent
2e84354d78
commit
a1a2b9d1c0
|
|
@ -966,7 +966,6 @@ func rpcSetUsbDevices(usbDevices usbgadget.Devices) error {
|
|||
// Skip reconfiguration if devices haven't changed to avoid HID disruption
|
||||
if currentDevices.Equals(usbDevices) {
|
||||
logger.Debug().Msg("USB devices unchanged, skipping gadget reconfiguration")
|
||||
config.UsbDevices = &usbDevices
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue