vfs: drop casts for VFS_ADD_FSP_EXTENSION() callers
[gd/samba-autobuild/.git] / source3 / modules / vfs_streams_xattr.c
index f75f6a18dd6611d571274958f517ef500e79c42b..c126a483f70182890163766c09d0be90b6fd995d 100644 (file)
@@ -493,9 +493,7 @@ static int streams_xattr_open(vfs_handle_struct *handle,
                }
        }
 
-        sio = (struct stream_io *)VFS_ADD_FSP_EXTENSION(handle, fsp,
-                                                       struct stream_io,
-                                                       NULL);
+        sio = VFS_ADD_FSP_EXTENSION(handle, fsp, struct stream_io, NULL);
         if (sio == NULL) {
                 errno = ENOMEM;
                 goto fail;