summaryrefslogtreecommitdiffstats
path: root/api/src
diff options
context:
space:
mode:
Diffstat (limited to 'api/src')
-rw-r--r--api/src/glfs.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/api/src/glfs.c b/api/src/glfs.c
index 94a12c0be31..a1c8f6f54cb 100644
--- a/api/src/glfs.c
+++ b/api/src/glfs.c
@@ -583,16 +583,12 @@ pub_glfs_from_glfd (struct glfs_fd *glfd)
GFAPI_SYMVER_PUBLIC_DEFAULT(glfs_from_glfd, 3.4.0);
-void
-glfs_fd_destroy (void *data)
+static void
+glfs_fd_destroy (struct glfs_fd *glfd)
{
- struct glfs_fd *glfd = NULL;
-
- if (!data)
+ if (!glfd)
return;
- glfd = (struct glfs_fd *)data;
-
glfs_lock (glfd->fs, _gf_true);
{
list_del_init (&glfd->openfds);