mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 13:59:15 +00:00
trivial: Don't warn if overwriting with the same device name
This commit is contained in:
parent
7157ca79e4
commit
4cd8468722
@ -2303,13 +2303,8 @@ fu_device_set_name(FuDevice *self, const gchar *value)
|
|||||||
|
|
||||||
/* overwriting? */
|
/* overwriting? */
|
||||||
value_safe = fu_device_sanitize_name(value);
|
value_safe = fu_device_sanitize_name(value);
|
||||||
if (g_strcmp0(value_safe, fu_device_get_name(self)) == 0) {
|
if (g_strcmp0(value_safe, fu_device_get_name(self)) == 0)
|
||||||
const gchar *id = fu_device_get_id(self);
|
|
||||||
g_debug("%s device overwriting same name value: %s",
|
|
||||||
id != NULL ? id : "unknown",
|
|
||||||
value_safe);
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
/* changing */
|
/* changing */
|
||||||
if (fu_device_get_name(self) != NULL) {
|
if (fu_device_get_name(self) != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user