Commit ff17992b authored by Frediano Ziglio's avatar Frediano Ziglio Committed by Snir Sheriber

usb-device-manager: Remove useless cast

spice_usb_device_new is already returning a SpiceUsbDevice pointer.
Signed-off-by: Frediano Ziglio's avatarFrediano Ziglio <fziglio@redhat.com>
Acked-by: Snir Sheriber's avatarSnir Sheriber <ssheribe@redhat.com>
parent 1ab015b3
Pipeline #51745 passed with stage
in 4 minutes and 40 seconds
......@@ -776,7 +776,7 @@ static void spice_usb_device_manager_add_dev(SpiceUsbDeviceManager *self,
return;
}
device = (SpiceUsbDevice*)spice_usb_device_new(bdev);
device = spice_usb_device_new(bdev);
if (!device)
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment