]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/EhciDxe/EhciUrb.c
Fixed potential issues to release resources when error occurs.
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / EhciDxe / EhciUrb.c
index 005e0596b68fa6fe42ce4eb61af3cbd234171beb..bb272cc8dee8a43bb85115aa382d4d91829b247f 100644 (file)
@@ -294,7 +294,7 @@ EhcConvertPollRate (
     BitCount++;\r
   }\r
 \r
-  return 1 << (BitCount - 1);\r
+  return (UINTN)1 << (BitCount - 1);\r
 }\r
 \r
 \r