mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-04 07:48:36 +00:00
udev-builtin: path_id - don't pass NULL to udev_device_get_parent()
Being explicit about this makes the code easier to follow IMHO.
This commit is contained in:
@@ -665,7 +665,8 @@ static int builtin_path_id(struct udev_device *dev, int argc, char *argv[], bool
|
||||
supported_parent = true;
|
||||
}
|
||||
|
||||
parent = udev_device_get_parent(parent);
|
||||
if (parent)
|
||||
parent = udev_device_get_parent(parent);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user