diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-02-18 23:15:02 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-02-20 10:54:48 +0100 |
commit | c207a572275f7645673727b5406b3449d35da99f (patch) | |
tree | bf41d8b2c2e1c24e21d009717fd2b13a853f966c | |
parent | core: permit sending augmented enable/disable methods (diff) | |
download | systemd-c207a572275f7645673727b5406b3449d35da99f.tar.xz systemd-c207a572275f7645673727b5406b3449d35da99f.zip |
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.
-rw-r--r-- | src/udev/udev-node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-node.c b/src/udev/udev-node.c index 1596497da8..5f3dc61f09 100644 --- a/src/udev/udev-node.c +++ b/src/udev/udev-node.c @@ -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); |