From 9da3888456debd9c2b965278fe88a2cc08d6aee9 Mon Sep 17 00:00:00 2001 From: Ruiyu Ni Date: Thu, 7 Nov 2013 02:30:13 +0000 Subject: Fix several bugs in DevicePathLib implementation regarding the device path node and text conversion. Signed-off-by: Ruiyu Ni Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14827 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/UefiDevicePathLib/DevicePathToText.c | 23 +++++++--------------- 1 file changed, 7 insertions(+), 16 deletions(-) (limited to 'MdePkg/Library/UefiDevicePathLib/DevicePathToText.c') diff --git a/MdePkg/Library/UefiDevicePathLib/DevicePathToText.c b/MdePkg/Library/UefiDevicePathLib/DevicePathToText.c index 81cf84e25d..eebdbf2394 100644 --- a/MdePkg/Library/UefiDevicePathLib/DevicePathToText.c +++ b/MdePkg/Library/UefiDevicePathLib/DevicePathToText.c @@ -990,22 +990,13 @@ DevPathToTextSata ( SATA_DEVICE_PATH *Sata; Sata = DevPath; - if ((Sata->PortMultiplierPortNumber & SATA_HBA_DIRECT_CONNECT_FLAG) != 0) { - UefiDevicePathLibCatPrint ( - Str, - L"Sata(0x%x,0x%x)", - Sata->HBAPortNumber, - Sata->Lun - ); - } else { - UefiDevicePathLibCatPrint ( - Str, - L"Sata(0x%x,0x%x,0x%x)", - Sata->HBAPortNumber, - Sata->PortMultiplierPortNumber, - Sata->Lun - ); - } + UefiDevicePathLibCatPrint ( + Str, + L"Sata(0x%x,0x%x,0x%x)", + Sata->HBAPortNumber, + Sata->PortMultiplierPortNumber, + Sata->Lun + ); } /** -- cgit v1.2.3