mirror of
https://github.com/systemd/systemd
synced 2024-10-15 12:34:37 +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:
parent
3b64e4d4f4
commit
28541a3d7c
|
@ -665,6 +665,7 @@ static int builtin_path_id(struct udev_device *dev, int argc, char *argv[], bool
|
|||
supported_parent = true;
|
||||
}
|
||||
|
||||
if (parent)
|
||||
parent = udev_device_get_parent(parent);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue