summaryrefslogtreecommitdiffstats
path: root/sys/compat/linprocfs
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2015-10-18 13:52:53 +0000
committertrasz <trasz@FreeBSD.org>2015-10-18 13:52:53 +0000
commit3a711d39b4d95e8a010913207546b18041576841 (patch)
tree67196f746788f90b4639914e44502d030df38e14 /sys/compat/linprocfs
parent3143d6bb406e431c2b25ce67653158c6a0330706 (diff)
downloadFreeBSD-src-3a711d39b4d95e8a010913207546b18041576841.zip
FreeBSD-src-3a711d39b4d95e8a010913207546b18041576841.tar.gz
MFC r280981:
Remove unused code. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/compat/linprocfs')
-rw-r--r--sys/compat/linprocfs/linprocfs.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c
index 47bb13b..4aae77e 100644
--- a/sys/compat/linprocfs/linprocfs.c
+++ b/sys/compat/linprocfs/linprocfs.c
@@ -393,7 +393,6 @@ linprocfs_domtab(PFS_FILL_ARGS)
/*
* Filler function for proc/partitions
- *
*/
static int
linprocfs_dopartitions(PFS_FILL_ARGS)
@@ -401,27 +400,9 @@ linprocfs_dopartitions(PFS_FILL_ARGS)
struct g_class *cp;
struct g_geom *gp;
struct g_provider *pp;
- struct nameidata nd;
- const char *lep;
- char *dlep, *flep;
- size_t lep_len;
- int error;
int major, minor;
- /* resolve symlinks etc. in the emulation tree prefix */
- NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, linux_emul_path, td);
- flep = NULL;
- error = namei(&nd);
- lep = linux_emul_path;
- if (error == 0) {
- if (vn_fullpath(td, nd.ni_vp, &dlep, &flep) == 0)
- lep = dlep;
- vrele(nd.ni_vp);
- }
- lep_len = strlen(lep);
-
g_topology_lock();
- error = 0;
sbuf_printf(sb, "major minor #blocks name rio rmerge rsect "
"ruse wio wmerge wsect wuse running use aveq\n");
@@ -447,8 +428,7 @@ linprocfs_dopartitions(PFS_FILL_ARGS)
}
g_topology_unlock();
- free(flep, M_TEMP);
- return (error);
+ return (0);
}
OpenPOWER on IntegriCloud