mirror of
https://github.com/systemd/systemd
synced 2024-10-06 16:21:34 +00:00
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:
parent
d668ba131c
commit
c207a57227
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue