summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Siegl <stesie@brokenpipe.de>2005-03-20 20:40:12 +0000
committerStefan Siegl <stesie@brokenpipe.de>2005-03-20 20:40:12 +0000
commit0ef9997484bb4a78478d2d14afdc4e66d20211cf (patch)
tree9bd9ba0a356d0c21627063f373b48c6586c3331f
parent90befa57f084cabadc73cb8721932be7ab79793c (diff)
refactored netfs_attempt_readlink.
-rw-r--r--netfs.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/netfs.c b/netfs.c
index 89db986c7..71376a0b6 100644
--- a/netfs.c
+++ b/netfs.c
@@ -72,12 +72,10 @@ error_t netfs_attempt_readlink (struct iouser *user, struct node *node,
char *buf)
{
FUNC_PROLOGUE_NODE("netfs_attempt_readlink", node);
- error_t err;
-
- if(! fuse_ops->readlink)
- FUNC_RETURN(EOPNOTSUPP);
+ error_t err = EOPNOTSUPP;
- err = -fuse_ops->readlink(node->nn->path, buf, INT_MAX);
+ if(fuse_ops->readlink)
+ err = -fuse_ops->readlink(node->nn->path, buf, INT_MAX);
FUNC_EPILOGUE(err);
}