]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/IdeBusPei/AtapiPeim.c
MdeModulePkg: Refine casting expression result to bigger size
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / IdeBusPei / AtapiPeim.c
index be1b82920003c6a4f91fb7aad87c8c6732b7d823..b1ab34d5974335fe8d29edfc3f1dd183724a70f8 100644 (file)
@@ -5,7 +5,7 @@ ATA controllers in the platform.
 This PPI can be consumed by PEIM which produce gEfiPeiDeviceRecoveryModulePpiGuid\r
 for Atapi CD ROM device.\r
 \r
-Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -593,7 +593,7 @@ AtapiEnumerateDevices (
       //\r
       // Pata & Sata, Primary & Secondary channel, Master & Slave device\r
       //\r
-      DevicePosition = (UINTN) (Index1 * 2 + Index2);\r
+      DevicePosition = Index1 * 2 + Index2;\r
 \r
       if (DiscoverAtapiDevice (AtapiBlkIoDev, DevicePosition, &MediaInfo, &MediaInfo2)) {\r
         //\r