Commit 60b9037c authored by Frediano Ziglio's avatar Frediano Ziglio

usb-device-manager: Do not give warnings for supported configuration

Signed-off-by: Frediano Ziglio's avatarFrediano Ziglio <fziglio@redhat.com>
Acked-by: 's avatarVictor Toso <victortoso@redhat.com>
parent 87333253
Pipeline #53888 passed with stage
in 6 minutes and 2 seconds
......@@ -222,7 +222,7 @@ static void spice_usb_device_manager_init(SpiceUsbDeviceManager *self)
if (usbdk_is_driver_installed()) {
priv->usbdk_api = usbdk_api_load();
} else {
spice_debug("UsbDk driver is not installed");
g_warning("UsbDk driver is not installed");
}
#endif
#ifdef USE_USBREDIR
......@@ -1547,7 +1547,9 @@ gboolean _usbdk_hider_prepare(SpiceUsbDeviceManager *manager)
{
SpiceUsbDeviceManagerPrivate *priv = manager->priv;
g_return_val_if_fail(priv->usbdk_api != NULL, FALSE);
if (priv->usbdk_api == NULL) {
return FALSE;
}
if (priv->usbdk_hider_handle == NULL) {
priv->usbdk_hider_handle = usbdk_create_hider_handle(priv->usbdk_api);
......@@ -1565,7 +1567,9 @@ void _usbdk_hider_clear(SpiceUsbDeviceManager *manager)
{
SpiceUsbDeviceManagerPrivate *priv = manager->priv;
g_return_if_fail(priv->usbdk_api != NULL);
if (priv->usbdk_api == NULL) {
return;
}
if (priv->usbdk_hider_handle != NULL) {
usbdk_clear_hide_rules(priv->usbdk_api, priv->usbdk_hider_handle);
......@@ -1579,7 +1583,9 @@ void _usbdk_hider_update(SpiceUsbDeviceManager *manager)
{
SpiceUsbDeviceManagerPrivate *priv = manager->priv;
g_return_if_fail(priv->usbdk_api != NULL);
if (priv->usbdk_api == NULL) {
return;
}
if (priv->auto_connect_filter == NULL) {
SPICE_DEBUG("No autoredirect rules, no hider setup needed");
......
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