diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-08-22 12:57:32 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-09-10 11:27:36 +0200 |
commit | 2024ed616e91964ceadbb8c2ef460cd499018833 (patch) | |
tree | 90bf70d20a820f5219d94bb4d9aefd7795a49588 /src/udev/udev-node.c | |
parent | udev: drop unused udev_watch struct (diff) | |
download | systemd-2024ed616e91964ceadbb8c2ef460cd499018833.tar.xz systemd-2024ed616e91964ceadbb8c2ef460cd499018833.zip |
udev: drop unused udev struct
Diffstat (limited to 'src/udev/udev-node.c')
-rw-r--r-- | src/udev/udev-node.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/udev/udev-node.c b/src/udev/udev-node.c index c3bfe8b00c..4080471a51 100644 --- a/src/udev/udev-node.c +++ b/src/udev/udev-node.c @@ -113,7 +113,6 @@ exit: /* find device node of device with highest priority */ static const char *link_find_prioritized(struct udev_device *dev, bool add, const char *stackdir, char *buf, size_t bufsize) { - struct udev *udev = udev_device_get_udev(dev); DIR *dir; struct dirent *dent; int priority = 0; @@ -142,7 +141,7 @@ static const char *link_find_prioritized(struct udev_device *dev, bool add, cons if (streq(dent->d_name, udev_device_get_id_filename(dev))) continue; - dev_db = udev_device_new_from_device_id(udev, dent->d_name); + dev_db = udev_device_new_from_device_id(NULL, dent->d_name); if (dev_db != NULL) { const char *devnode; |