libnfs.c: Fix a warning
authorRoss Lagerwall <rosslagerwall@gmail.com>
Sun, 27 Jul 2014 17:06:12 +0000 (18:06 +0100)
committerRoss Lagerwall <rosslagerwall@gmail.com>
Sun, 27 Jul 2014 20:22:34 +0000 (21:22 +0100)
Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
lib/libnfs.c

index c25ae2d66dbd85c9651459dd1c2a171089e80c7e..3115a686198b31d68a920bbb473d117f33a0cae7 100644 (file)
@@ -2727,7 +2727,7 @@ static void nfs_create_2_cb(struct rpc_context *rpc, int status, void *command_d
                data->cb(-ENOMEM, nfs, rpc_get_error(nfs->rpc), data->private_data);
                free_nfs_cb_data(data);
                free(nfsfh);
-               return -1;
+               return;
        }
        memcpy(nfsfh->fh.data.data_val, res->LOOKUP3res_u.resok.object.data.data_val, nfsfh->fh.data.data_len);