summaryrefslogtreecommitdiff
path: root/udev/lib
diff options
context:
space:
mode:
Diffstat (limited to 'udev/lib')
-rw-r--r--udev/lib/libudev-device.c15
-rw-r--r--udev/lib/libudev-monitor.c5
-rw-r--r--udev/lib/libudev-private.h2
3 files changed, 0 insertions, 22 deletions
diff --git a/udev/lib/libudev-device.c b/udev/lib/libudev-device.c
index 8e29efff86..ddc4b34115 100644
--- a/udev/lib/libudev-device.c
+++ b/udev/lib/libudev-device.c
@@ -36,7 +36,6 @@ struct udev_device {
char *driver;
char *action;
char *devpath_old;
- char *physdevpath;
char *knodename;
char **envp;
char *monitor_buf;
@@ -625,7 +624,6 @@ void udev_device_unref(struct udev_device *udev_device)
free(udev_device->driver);
free(udev_device->devpath_old);
free(udev_device->knodename);
- free(udev_device->physdevpath);
udev_list_cleanup_entries(udev_device->udev, &udev_device->sysattr_list);
free(udev_device->envp);
free(udev_device->monitor_buf);
@@ -1192,19 +1190,6 @@ int udev_device_set_knodename(struct udev_device *udev_device, const char *knode
return 0;
}
-const char *udev_device_get_physdevpath(struct udev_device *udev_device)
-{
- return udev_device->physdevpath;
-}
-
-int udev_device_set_physdevpath(struct udev_device *udev_device, const char *physdevpath)
-{
- udev_device->physdevpath = strdup(physdevpath);
- if (udev_device->physdevpath == NULL)
- return -ENOMEM;
- return 0;
-}
-
int udev_device_get_timeout(struct udev_device *udev_device)
{
return udev_device->timeout;
diff --git a/udev/lib/libudev-monitor.c b/udev/lib/libudev-monitor.c
index fc904c4a7c..2540e85c34 100644
--- a/udev/lib/libudev-monitor.c
+++ b/udev/lib/libudev-monitor.c
@@ -586,15 +586,10 @@ retry:
min = strtoull(&key[6], NULL, 10);
} else if (strncmp(key, "DEVPATH_OLD=", 12) == 0) {
udev_device_set_devpath_old(udev_device, &key[12]);
- } else if (strncmp(key, "PHYSDEVPATH=", 12) == 0) {
- udev_device_set_physdevpath(udev_device, &key[12]);
} else if (strncmp(key, "SEQNUM=", 7) == 0) {
udev_device_set_seqnum(udev_device, strtoull(&key[7], NULL, 10));
} else if (strncmp(key, "TIMEOUT=", 8) == 0) {
udev_device_set_timeout(udev_device, strtoull(&key[8], NULL, 10));
- } else if (strncmp(key, "PHYSDEV", 7) == 0) {
- /* suppress deprecated values */
- continue;
} else {
udev_device_add_property_from_string(udev_device, key);
}
diff --git a/udev/lib/libudev-private.h b/udev/lib/libudev-private.h
index 8723cd7914..7dd8e7dfe0 100644
--- a/udev/lib/libudev-private.h
+++ b/udev/lib/libudev-private.h
@@ -64,8 +64,6 @@ const char *udev_device_get_devpath_old(struct udev_device *udev_device);
int udev_device_set_devpath_old(struct udev_device *udev_device, const char *devpath_old);
const char *udev_device_get_knodename(struct udev_device *udev_device);
int udev_device_set_knodename(struct udev_device *udev_device, const char *knodename);
-const char *udev_device_get_physdevpath(struct udev_device *udev_device);
-int udev_device_set_physdevpath(struct udev_device *udev_device, const char *physdevpath);
int udev_device_get_timeout(struct udev_device *udev_device);
int udev_device_set_timeout(struct udev_device *udev_device, int timeout);
int udev_device_get_event_timeout(struct udev_device *udev_device);