Fixed build error reported by ICC and GCC

Signed-off-by: erictian
Reviewed-by: li-elvin


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12209 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
erictian
2011-08-25 10:19:11 +00:00
parent 1476a25761
commit ce9b590040
4 changed files with 19 additions and 23 deletions

View File

@@ -233,7 +233,7 @@ UsbCreateDevice (
Device->ParentAddr = ParentIf->Device->Address;
Device->ParentIf = ParentIf;
Device->ParentPort = ParentPort;
Device->Tier = ParentIf->Device->Tier + 1;
Device->Tier = (UINT8)(ParentIf->Device->Tier + 1);
return Device;
}