EFI_STATUS\r
EFIAPI\r
VirtioFsSimpleFileDelete (\r
- IN EFI_FILE_PROTOCOL *This\r
+ IN EFI_FILE_PROTOCOL *This\r
)\r
{\r
- VIRTIO_FS_FILE *VirtioFsFile;\r
- VIRTIO_FS *VirtioFs;\r
- EFI_STATUS Status;\r
+ VIRTIO_FS_FILE *VirtioFsFile;\r
+ VIRTIO_FS *VirtioFs;\r
+ EFI_STATUS Status;\r
\r
VirtioFsFile = VIRTIO_FS_FILE_FROM_SIMPLE_FILE (This);\r
VirtioFs = VirtioFsFile->OwnerFs;\r
//\r
// If any action fails below, we still try the others.\r
//\r
- VirtioFsFuseReleaseFileOrDir (VirtioFs, VirtioFsFile->NodeId,\r
- VirtioFsFile->FuseHandle, VirtioFsFile->IsDirectory);\r
+ VirtioFsFuseReleaseFileOrDir (\r
+ VirtioFs,\r
+ VirtioFsFile->NodeId,\r
+ VirtioFsFile->FuseHandle,\r
+ VirtioFsFile->IsDirectory\r
+ );\r
\r
//\r
// VirtioFsFile->FuseHandle is gone at this point, but VirtioFsFile->NodeId\r
// of this operation determines the return status of the function.\r
//\r
if (VirtioFsFile->IsOpenForWriting) {\r
- UINT64 ParentNodeId;\r
- CHAR8 *LastComponent;\r
+ UINT64 ParentNodeId;\r
+ CHAR8 *LastComponent;\r
\r
//\r
// Split our canonical pathname into most specific parent directory\r
VirtioFsFuseForget (VirtioFs, ParentNodeId);\r
}\r
}\r
+\r
if (EFI_ERROR (Status)) {\r
//\r
// Map any failure to the spec-mandated warning code.\r
if (VirtioFsFile->FileInfoArray != NULL) {\r
FreePool (VirtioFsFile->FileInfoArray);\r
}\r
+\r
FreePool (VirtioFsFile);\r
return Status;\r
}\r