trivial: Don't warn if overwriting with the same device name

This commit is contained in:
Richard Hughes 2022-02-22 12:55:01 +00:00
parent 7157ca79e4
commit 4cd8468722

View File

@ -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) {