diff options
author | Stefan Siegl <stesie@brokenpipe.de> | 2005-03-20 20:40:12 +0000 |
---|---|---|
committer | Stefan Siegl <stesie@brokenpipe.de> | 2005-03-20 20:40:12 +0000 |
commit | 0ef9997484bb4a78478d2d14afdc4e66d20211cf (patch) | |
tree | 9bd9ba0a356d0c21627063f373b48c6586c3331f | |
parent | 90befa57f084cabadc73cb8721932be7ab79793c (diff) |
refactored netfs_attempt_readlink.
-rw-r--r-- | netfs.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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); } |