diff options
author | Hao Wu <hao.a.wu@intel.com> | 2017-05-16 13:24:29 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2017-05-17 15:26:24 +0800 |
commit | a8321feebb6af978478e0da559806602bd2dcc7d (patch) | |
tree | dfcea8b73dc5c284c49b4186d3855df907a4a352 /MdeModulePkg/Bus | |
parent | 760759962786c3c554c20d76b800ee31a878aaa1 (diff) | |
download | edk2-a8321feebb6af978478e0da559806602bd2dcc7d.tar.gz edk2-a8321feebb6af978478e0da559806602bd2dcc7d.tar.bz2 edk2-a8321feebb6af978478e0da559806602bd2dcc7d.zip |
MdeModulePkg/UfsPassThruDxe: Fix typo in UfsPassThruGetTargetLun()
For function UfsPassThruGetTargetLun(), the length of the input device
node specified by 'DevicePath' should be compared with the size of
'UFS_DEVICE_PATH' rather than the size of 'SCSI_DEVICE_PATH'.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'MdeModulePkg/Bus')
-rw-r--r-- | MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c b/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c index 68a44367b5..e27f4fbab1 100644 --- a/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c +++ b/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c @@ -479,10 +479,10 @@ UfsPassThruGetTargetLun ( }
//
- // Check whether the DevicePath belongs to SCSI_DEVICE_PATH
+ // Check whether the DevicePath belongs to UFS_DEVICE_PATH
//
if ((DevicePath->Type != MESSAGING_DEVICE_PATH) || (DevicePath->SubType != MSG_UFS_DP) ||
- (DevicePathNodeLength(DevicePath) != sizeof(SCSI_DEVICE_PATH))) {
+ (DevicePathNodeLength(DevicePath) != sizeof(UFS_DEVICE_PATH))) {
return EFI_UNSUPPORTED;
}
|