diff options
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/coda/coda_vnops.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/sys/fs/coda/coda_vnops.c b/sys/fs/coda/coda_vnops.c index f55a808..de765f8 100644 --- a/sys/fs/coda/coda_vnops.c +++ b/sys/fs/coda/coda_vnops.c @@ -1768,21 +1768,17 @@ make_coda_node(CodaFid *fid, struct mount *vfsp, short type) int coda_pathconf(struct vop_pathconf_args *ap) { - int error; - register_t *retval; - retval = ap->a_retval; - error = 0; switch (ap->a_name) { case _PC_NAME_MAX: - *retval = CODA_MAXNAMLEN; - break; + *ap->a_retval = CODA_MAXNAMLEN; + return (0); + case _PC_PATH_MAX: - *retval = CODA_MAXPATHLEN; - break; + *ap->a_retval = CODA_MAXPATHLEN; + return (0); + default: - error = vop_stdpathconf(ap); - break; + return (vop_stdpathconf(ap)); } - return (error); } |