Skip to content

Commit

Permalink
udev-builtin: path_id - don't pass NULL to udev_device_get_parent()
Browse files Browse the repository at this point in the history
Being explicit about this makes the code easier to follow IMHO.
  • Loading branch information
teg committed Jun 2, 2015
1 parent 3b64e4d commit 28541a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/udev/udev-builtin-path_id.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit 28541a3

Please sign in to comment.