ShellPkg/memmap: Refine code