summaryrefslogtreecommitdiff
path: root/src/udev/udev-event.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-10-29 22:45:14 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-10-31 09:29:51 +0900
commit7af1c7808bb64941416e4f618bfa1ed40ab5eff9 (patch)
tree648d9fd0e4fdd38bfd3cc5fb283883d2220fb7e1 /src/udev/udev-event.c
parentd4a95a952e47d6ab959694114eccc838a0b31529 (diff)
downloadsystemd-7af1c7808bb64941416e4f618bfa1ed40ab5eff9.tar.gz
systemd-7af1c7808bb64941416e4f618bfa1ed40ab5eff9.tar.bz2
systemd-7af1c7808bb64941416e4f618bfa1ed40ab5eff9.zip
udev-event: do not store unused devnum
Diffstat (limited to 'src/udev/udev-event.c')
-rw-r--r--src/udev/udev-event.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c
index e044adedc3..65f66cd130 100644
--- a/src/udev/udev-event.c
+++ b/src/udev/udev-event.c
@@ -727,11 +727,10 @@ static int rename_netif(struct udev_event *event) {
static int update_devnode(struct udev_event *event) {
sd_device *dev = event->dev->device;
const char *action;
- dev_t devnum;
bool apply;
int r;
- r = sd_device_get_devnum(dev, &devnum);
+ r = sd_device_get_devnum(dev, NULL);
if (r == -ENOENT)
return 0;
if (r < 0)
@@ -814,7 +813,6 @@ int udev_event_execute_rules(struct udev_event *event,
_cleanup_(sd_device_unrefp) sd_device *clone = NULL;
sd_device *dev = event->dev->device;
const char *subsystem, *action;
- dev_t devnum;
int r;
assert(event);
@@ -842,7 +840,7 @@ int udev_event_execute_rules(struct udev_event *event,
if (!event->dev_db)
return -ENOMEM;
- r = sd_device_get_devnum(dev, &devnum);
+ r = sd_device_get_devnum(dev, NULL);
if (r < 0) {
if (r != -ENOENT)
log_device_debug_errno(dev, r, "Failed to get devnum, ignoring: %m");