mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-17 08:49:12 +00:00
dell: Stop showing errors when no dock plugged in
Since it matches the Realtek dongle, shouldn't show this error: failed to add USB device 0bda:8153: no dock detected All the time when that dongle is plugged in
This commit is contained in:
parent
36a2bd06ec
commit
20447a00ae
@ -351,9 +351,8 @@ fu_plugin_usb_device_added (FuPlugin *plugin,
|
|||||||
|
|
||||||
buf.buf = NULL;
|
buf.buf = NULL;
|
||||||
if (!fu_dell_query_dock (data->smi_obj, &buf)) {
|
if (!fu_dell_query_dock (data->smi_obj, &buf)) {
|
||||||
g_set_error_literal (error, FWUPD_ERROR, FWUPD_ERROR_NOT_SUPPORTED,
|
g_debug ("no dock detected");
|
||||||
"no dock detected");
|
return TRUE;
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buf.record->dock_info_header.dir_version != 1) {
|
if (buf.record->dock_info_header.dir_version != 1) {
|
||||||
|
@ -301,7 +301,7 @@ fu_plugin_dell_dock_func (void)
|
|||||||
DOCK_NIC_VID, DOCK_NIC_PID,
|
DOCK_NIC_VID, DOCK_NIC_PID,
|
||||||
NULL, FALSE);
|
NULL, FALSE);
|
||||||
ret = fu_plugin_usb_device_added (plugin_dell, NULL, &error);
|
ret = fu_plugin_usb_device_added (plugin_dell, NULL, &error);
|
||||||
g_assert_false (ret);
|
g_assert_true (ret);
|
||||||
g_clear_error (&error);
|
g_clear_error (&error);
|
||||||
g_assert_cmpint (devices->len, ==, 0);
|
g_assert_cmpint (devices->len, ==, 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user