Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157522004
D2195.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D2195.id.diff
View Options
Index: head/sys/compat/linprocfs/linprocfs.c
===================================================================
--- head/sys/compat/linprocfs/linprocfs.c
+++ head/sys/compat/linprocfs/linprocfs.c
@@ -394,7 +394,6 @@
/*
* Filler function for proc/partitions
- *
*/
static int
linprocfs_dopartitions(PFS_FILL_ARGS)
@@ -402,27 +401,9 @@
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");
@@ -448,8 +429,7 @@
}
g_topology_unlock();
- free(flep, M_TEMP);
- return (error);
+ return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 23, 9:00 AM (11 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33444273
Default Alt Text
D2195.id.diff (1 KB)
Attached To
Mode
D2195: Remove unused code.
Attached
Detach File
Event Timeline
Log In to Comment