OvmfPkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the OvmfPkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Andrew Fish <afish@apple.com>
This commit is contained in:
committed by
mergify[bot]
parent
d1050b9dff
commit
ac0a286f4d
@@ -14,11 +14,11 @@
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
VirtioFsSimpleFileClose (
|
||||
IN EFI_FILE_PROTOCOL *This
|
||||
IN EFI_FILE_PROTOCOL *This
|
||||
)
|
||||
{
|
||||
VIRTIO_FS_FILE *VirtioFsFile;
|
||||
VIRTIO_FS *VirtioFs;
|
||||
VIRTIO_FS_FILE *VirtioFsFile;
|
||||
VIRTIO_FS *VirtioFs;
|
||||
|
||||
VirtioFsFile = VIRTIO_FS_FILE_FROM_SIMPLE_FILE (This);
|
||||
VirtioFs = VirtioFsFile->OwnerFs;
|
||||
@@ -34,16 +34,27 @@ VirtioFsSimpleFileClose (
|
||||
//
|
||||
if (VirtioFsFile->IsOpenForWriting) {
|
||||
if (!VirtioFsFile->IsDirectory) {
|
||||
VirtioFsFuseFlush (VirtioFs, VirtioFsFile->NodeId,
|
||||
VirtioFsFile->FuseHandle);
|
||||
VirtioFsFuseFlush (
|
||||
VirtioFs,
|
||||
VirtioFsFile->NodeId,
|
||||
VirtioFsFile->FuseHandle
|
||||
);
|
||||
}
|
||||
|
||||
VirtioFsFuseFsyncFileOrDir (VirtioFs, VirtioFsFile->NodeId,
|
||||
VirtioFsFile->FuseHandle, VirtioFsFile->IsDirectory);
|
||||
VirtioFsFuseFsyncFileOrDir (
|
||||
VirtioFs,
|
||||
VirtioFsFile->NodeId,
|
||||
VirtioFsFile->FuseHandle,
|
||||
VirtioFsFile->IsDirectory
|
||||
);
|
||||
}
|
||||
|
||||
VirtioFsFuseReleaseFileOrDir (VirtioFs, VirtioFsFile->NodeId,
|
||||
VirtioFsFile->FuseHandle, VirtioFsFile->IsDirectory);
|
||||
VirtioFsFuseReleaseFileOrDir (
|
||||
VirtioFs,
|
||||
VirtioFsFile->NodeId,
|
||||
VirtioFsFile->FuseHandle,
|
||||
VirtioFsFile->IsDirectory
|
||||
);
|
||||
|
||||
//
|
||||
// VirtioFsFile->FuseHandle is gone at this point, but VirtioFsFile->NodeId
|
||||
@@ -63,6 +74,7 @@ VirtioFsSimpleFileClose (
|
||||
if (VirtioFsFile->FileInfoArray != NULL) {
|
||||
FreePool (VirtioFsFile->FileInfoArray);
|
||||
}
|
||||
|
||||
FreePool (VirtioFsFile);
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user