diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c index 9e69c92dc01..d4f38b49147 100644 --- a/sys/compat/linprocfs/linprocfs.c +++ b/sys/compat/linprocfs/linprocfs.c @@ -448,9 +448,6 @@ linprocfs_docpuinfo(PFS_FILL_ARGS) } #endif /* __i386__ || __amd64__ */ -static const char *path_slash_sys = "/sys"; -static const char *fstype_sysfs = "sysfs"; - static int _mtab_helper(const struct pfs_node *pn, const struct statfs *sp, const char **mntfrom, const char **mntto, const char **fstype) @@ -478,8 +475,7 @@ _mtab_helper(const struct pfs_node *pn, const struct statfs *sp, } if (strcmp(*fstype, "linsysfs") == 0) { - *mntfrom = path_slash_sys; - *fstype = fstype_sysfs; + *mntfrom = *fstype = "sysfs"; } else { /* For Linux msdosfs is called vfat */ if (strcmp(*fstype, "msdosfs") == 0)