fix Klocwork issues

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7926 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
hfang
2009-03-23 09:12:51 +00:00
parent 3fb46d0b04
commit 261136bc32
7 changed files with 31 additions and 8 deletions

View File

@ -1791,7 +1791,7 @@ AtapiBlkIoReadBlocks (
//
if (LBA == 0 && (IdeBlkIoDevice->Cache == NULL)) {
IdeBlkIoDevice->Cache = AllocatePool (BlockSize);
if (IdeBlkIoDevice != NULL) {
if (IdeBlkIoDevice->Cache!= NULL) {
CopyMem ((UINT8 *) IdeBlkIoDevice->Cache, (UINT8 *) Buffer, BlockSize);
}
}