Merge branch 'misc-cleanups' into 'main'

Misc. cleanups

See merge request plymouth/plymouth!164
This commit is contained in:
Ray Strode 2022-02-28 18:56:25 +00:00
commit aef728a83d
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -32,6 +32,7 @@ plymouth-set-default-theme
plymouth-log-viewer
plymouth-upstart-bridge
plymouthd
plymouthd-fd-escrow
*.pc
tags
*.bck

View file

@ -279,7 +279,7 @@ create_devices_for_udev_device (ply_device_manager_t *manager,
subsystem = udev_device_get_subsystem (device);
ply_trace ("device subsystem is %s", subsystem);
if (subsystem != NULL && strcmp (subsystem, SUBSYSTEM_DRM) == 0) {
if (strcmp (subsystem, SUBSYSTEM_DRM) == 0) {
ply_trace ("found DRM device %s", device_path);
renderer_type = PLY_RENDERER_TYPE_DRM;
} else if (strcmp (subsystem, SUBSYSTEM_FRAME_BUFFER) == 0) {
@ -411,7 +411,7 @@ verify_add_or_change (ply_device_manager_t *manager,
const char *device_path,
struct udev_device *device)
{
const char *subsystem = udev_device_get_subsystem (device);
const char *subsystem;
if (strcmp (action, "add") && strcmp (action, "change"))
return false;