From ea1486c28127057b7f3059b8c3c74afe7912460f Mon Sep 17 00:00:00 2001 From: Ruiyu Ni Date: Wed, 24 Oct 2018 15:22:31 +0800 Subject: [PATCH] FatPkg: Correct the line ending to CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni --- FatPkg/EnhancedFatDxe/FileSpace.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/FatPkg/EnhancedFatDxe/FileSpace.c b/FatPkg/EnhancedFatDxe/FileSpace.c index 50391b75b8..e17d3b6531 100644 --- a/FatPkg/EnhancedFatDxe/FileSpace.c +++ b/FatPkg/EnhancedFatDxe/FileSpace.c @@ -509,11 +509,11 @@ FatGrowEof ( goto Done; } - if (NewCluster < FAT_MIN_CLUSTER || NewCluster > Volume->MaxCluster + 1) { - Status = EFI_VOLUME_CORRUPTED; - goto Done; - } - + if (NewCluster < FAT_MIN_CLUSTER || NewCluster > Volume->MaxCluster + 1) { + Status = EFI_VOLUME_CORRUPTED; + goto Done; + } + if (LastCluster != 0) { FatSetFatEntry (Volume, LastCluster, NewCluster); } else { -- 2.39.2