feedback-manager: Drop superfluous g_clear_error

The error is a g_autoptr
This commit is contained in:
Guido Günther
2020-06-02 16:36:24 +00:00
committed by Guido Gunther
parent 81fda3134b
commit 784152ba67
+1 -3
View File
@@ -80,10 +80,8 @@ device_changes (FbdFeedbackManager *self, gchar *action, GUdevDevice *device,
g_debug ("Found hotplugged vibra device at %s", g_udev_device_get_sysfs_path (device));
self->vibra = fbd_dev_vibra_new (device, &err);
if (!self->vibra) {
if (!self->vibra)
g_warning ("Failed to init vibra device: %s", err->message);
g_clear_error (&err);
}
}
}
}