For 1-5, Acked-by: Victor Toso <victortoso@xxxxxxxxxx> On Thu, Jul 11, 2019 at 02:00:48PM +0100, Frediano Ziglio wrote: > This reduces conditional code. > > Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> > --- > src/usb-device-manager.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/src/usb-device-manager.c b/src/usb-device-manager.c > index 860f5c19..479558f4 100644 > --- a/src/usb-device-manager.c > +++ b/src/usb-device-manager.c > @@ -103,13 +103,11 @@ struct _SpiceUsbDeviceManagerPrivate { > int redirect_on_connect_rules_count; > #ifdef G_OS_WIN32 > GUdevClient *udev; > + usbdk_api_wrapper *usbdk_api; > + HANDLE usbdk_hider_handle; > #else > gboolean redirecting; /* Handled by GUdevClient in the gudev case */ > #endif > -#ifdef G_OS_WIN32 > - usbdk_api_wrapper *usbdk_api; > - HANDLE usbdk_hider_handle; > -#endif > #endif > GPtrArray *devices; > GPtrArray *channels; > -- > 2.20.1 > > _______________________________________________ > Spice-devel mailing list > Spice-devel@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/spice-devel
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel