diff options
author | rwatson <rwatson@FreeBSD.org> | 2008-02-11 00:01:45 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2008-02-11 00:01:45 +0000 |
commit | 8d55ec6003593c1d99eed137b48c3076d4090af8 (patch) | |
tree | ca091e64c18889462c4ce8aac7b8dada91502c3f /sys/fs/coda | |
parent | dca3074678fb1339515c7936447df93d7a793e38 (diff) | |
download | FreeBSD-src-8d55ec6003593c1d99eed137b48c3076d4090af8.zip FreeBSD-src-8d55ec6003593c1d99eed137b48c3076d4090af8.tar.gz |
Clean up coda_pathconf() slightly while debugging a problem there.
MFC after: 1 month
Diffstat (limited to 'sys/fs/coda')
-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); } |