aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/multipath
diff options
context:
space:
mode:
authorWuyang Chung <wy-chung@outlook.com>2025-07-27 14:13:48 +0000
committerWarner Losh <imp@FreeBSD.org>2025-09-14 03:29:00 +0000
commitbd7032e0b0580bc64455dc7c102e87dff6b06c8d (patch)
tree9c9e1367cbc948278bf00d8ca64d8545529e81de /sys/geom/multipath
parent9dd78db9c30a220ac3e8e65d89548ff99c14dd90 (diff)
Diffstat (limited to 'sys/geom/multipath')
-rw-r--r--sys/geom/multipath/g_multipath.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/geom/multipath/g_multipath.c b/sys/geom/multipath/g_multipath.c
index 250a2c60ffee..4459bd9f03f5 100644
--- a/sys/geom/multipath/g_multipath.c
+++ b/sys/geom/multipath/g_multipath.c
@@ -949,7 +949,6 @@ g_multipath_ctl_add_name(struct gctl_req *req, struct g_class *mp,
struct g_consumer *cp;
struct g_provider *pp;
const char *mpname;
- static const char devpf[6] = _PATH_DEV;
int error;
g_topology_assert();
@@ -966,8 +965,6 @@ g_multipath_ctl_add_name(struct gctl_req *req, struct g_class *mp,
}
sc = gp->softc;
- if (strncmp(name, devpf, 5) == 0)
- name += 5;
pp = g_provider_by_name(name);
if (pp == NULL) {
gctl_error(req, "Provider %s is invalid", name);