]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/UdfDxe: Avoid short (single character) variable name
authorHao Wu <hao.a.wu@intel.com>
Thu, 14 Sep 2017 08:02:42 +0000 (16:02 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 19 Sep 2017 04:44:00 +0000 (12:44 +0800)
In ResolveSymlink(), replace the following variable:
CHAR16              *C;

with:
CHAR16              *Char;

Cc: Paulo Alcantara <pcacjr@zytor.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Paulo Alcantara <pcacjr@zytor.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c

index 8fcc508c418df62edc70416241df7d9a5dff6e08..90862932fd1844c25a954c4cc08fd39f100a30f2 100644 (file)
@@ -2045,7 +2045,7 @@ ResolveSymlink (
   UDF_PATH_COMPONENT  *PathComp;\r
   UINT8               PathCompLength;\r
   CHAR16              FileName[UDF_FILENAME_LENGTH];\r
-  CHAR16              *C;\r
+  CHAR16              *Char;\r
   UINTN               Index;\r
   UINT8               CompressionId;\r
   UDF_FILE_INFO       PreviousFile;\r
@@ -2122,24 +2122,24 @@ ResolveSymlink (
         return EFI_VOLUME_CORRUPTED;\r
       }\r
 \r
-      C = FileName;\r
+      Char = FileName;\r
       for (Index = 1; Index < PathCompLength; Index++) {\r
         if (CompressionId == 16) {\r
-          *C = *(UINT8 *)((UINT8 *)PathComp->ComponentIdentifier +\r
+          *Char = *(UINT8 *)((UINT8 *)PathComp->ComponentIdentifier +\r
                           Index) << 8;\r
           Index++;\r
         } else {\r
-          *C = 0;\r
+          *Char = 0;\r
         }\r
 \r
         if (Index < Length) {\r
-          *C |= (CHAR16)(*(UINT8 *)((UINT8 *)PathComp->ComponentIdentifier + Index));\r
+          *Char |= (CHAR16)(*(UINT8 *)((UINT8 *)PathComp->ComponentIdentifier + Index));\r
         }\r
 \r
-        C++;\r
+        Char++;\r
       }\r
 \r
-      *C = L'\0';\r
+      *Char = L'\0';\r
       break;\r
     }\r
 \r