udev-node: drop unnecessary initialization

The priority of device node symlink can be negative. So the
initialization is confusing.

Fortunately, this changes no functionality, as we only compare the
priorities of symlinks only when we parsed at least one device node and
its priority.
This commit is contained in:
Yu Watanabe 2023-02-19 07:15:02 +09:00 committed by Lennart Poettering
parent d668ba131c
commit c207a57227

View file

@ -181,7 +181,7 @@ static int stack_directory_read_one(int dirfd, const char *id, char **devnode, i
static int stack_directory_find_prioritized_devnode(sd_device *dev, int dirfd, bool add, char **ret) {
_cleanup_closedir_ DIR *dir = NULL;
_cleanup_free_ char *devnode = NULL;
int r, priority = 0;
int r, priority;
const char *id;
assert(dev);