diff options
Diffstat (limited to 'api/src')
-rw-r--r-- | api/src/glfs.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/api/src/glfs.c b/api/src/glfs.c index 2b4312eac3a..174076e390f 100644 --- a/api/src/glfs.c +++ b/api/src/glfs.c @@ -214,20 +214,11 @@ err: static FILE * get_volfp (struct glfs *fs) { - int ret = 0; cmd_args_t *cmd_args = NULL; FILE *specfp = NULL; - struct stat statbuf; cmd_args = &fs->ctx->cmd_args; - ret = lstat (cmd_args->volfile, &statbuf); - if (ret == -1) { - gf_log ("glfs", GF_LOG_ERROR, - "%s: %s", cmd_args->volfile, strerror (errno)); - return NULL; - } - if ((specfp = fopen (cmd_args->volfile, "r")) == NULL) { gf_log ("glfs", GF_LOG_ERROR, "volume file %s: %s", |