mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 10:29:47 +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? */
|
||||
value_safe = fu_device_sanitize_name(value);
|
||||
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);
|
||||
if (g_strcmp0(value_safe, fu_device_get_name(self)) == 0)
|
||||
return;
|
||||
}
|
||||
|
||||
/* changing */
|
||||
if (fu_device_get_name(self) != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user