From 4f52b754df105dd17e8b6941f725d5a26fe40b66 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Mon, 11 Feb 2008 00:01:45 +0000 Subject: [PATCH] Clean up coda_pathconf() slightly while debugging a problem there. MFC after: 1 month --- sys/fs/coda/coda_vnops.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/sys/fs/coda/coda_vnops.c b/sys/fs/coda/coda_vnops.c index f55a80844c9c..de765f899ec1 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); }