[Spice-commits] src/usb-device-manager.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sun Jul 28 14:34:37 UTC 2019
src/usb-device-manager.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ff17992b9c5e54a32815bfc1d10a93d8e14115b4
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Fri Jul 26 11:04:02 2019 +0100
usb-device-manager: Remove useless cast
spice_usb_device_new is already returning a SpiceUsbDevice pointer.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Snir Sheriber <ssheribe at redhat.com>
diff --git a/src/usb-device-manager.c b/src/usb-device-manager.c
index a530be9..544e568 100644
--- a/src/usb-device-manager.c
+++ b/src/usb-device-manager.c
@@ -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;
More information about the Spice-commits
mailing list