X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FUefiDevicePathLib%2FDevicePathToText.c;h=eebdbf2394276bbdb117258144f8561c49afd4cd;hb=9da3888456debd9c2b965278fe88a2cc08d6aee9;hp=81cf84e25ddf31d8f26e4d5349dfcb3033d0eb03;hpb=eed8d6767c56f32789bf1d00dfc8e5470c791e93;p=mirror_edk2.git 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 + ); } /**