]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg: BcfgDisplayDump(): eliminate FilePathList duplication
authorLaszlo Ersek <lersek@redhat.com>
Thu, 21 Jan 2016 18:40:22 +0000 (18:40 +0000)
committerlersek <lersek@Edk2>
Thu, 21 Jan 2016 18:40:22 +0000 (18:40 +0000)
commit40de6483ec902472dabf61332595194937f5c260
treebe59b0f7f52c47fc3358074415043aae0e70bde2
parent5dc03ade6adbb7e91ec7ce90045692154dbef2aa
ShellPkg: BcfgDisplayDump(): eliminate FilePathList duplication

Copying and releasing each EFI_LOAD_OPTION.FilePathList under the name
DevPath is wasteful -- we only need FilePathList for a single conversion
to text. Do it directly from the EFI_LOAD_OPTION object.

This patch is not supposed to change observable behavior.

Cc: Jaben Carsey <jaben.carsey@intel.com>
Cc: Ryan Harkin <ryan.harkin@linaro.org>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19713 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c