FAT: Remove some unneeded locks.

Noticed by PulkoMandy in review on 4725.
This commit is contained in:
Augustin Cavalier
2021-12-01 16:29:47 -05:00
parent 690671b0c7
commit e385e3a009
@@ -42,8 +42,6 @@ dosfs_open_attrdir(fs_volume *_vol, fs_vnode *_node, void **_cookie)
DPRINTF(0, ("dosfs_open_attrdir called\n"));
RecursiveLocker lock(vol->vlock);
if ((*_cookie = malloc(sizeof(uint32))) == NULL) {
return ENOMEM;
}
@@ -60,8 +58,6 @@ dosfs_close_attrdir(fs_volume *_vol, fs_vnode *_node, void *_cookie)
DPRINTF(0, ("dosfs_close_attrdir called\n"));
RecursiveLocker lock(vol->vlock);
*(int32 *)_cookie = 1;
return 0;