]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg Variable: Move CacheVariable->InDeletedTransitionPtr NULL pointer check
authorStar Zeng <star.zeng@intel.com>
Wed, 28 Oct 2015 00:48:43 +0000 (00:48 +0000)
committerlzeng14 <lzeng14@Edk2>
Wed, 28 Oct 2015 00:48:43 +0000 (00:48 +0000)
commitae658d9163afd6053db7d37d46f54388e33a0052
tree093c8ab2828670876d728d63497bbb060da88f51
parent5b5e5674ae59721d4e045401c2deaaa76a96cda6
MdeModulePkg Variable: Move CacheVariable->InDeletedTransitionPtr NULL pointer check

This change is triggered by R18654 "Enhance variable performance by reading from existed memory cache"
that changed the code to use CacheVariable to improve performance.
So the CacheVariable->InDeletedTransitionPtr NULL pointer check needs to be moved to the place before
it is been used.

Cc: Shumin Qiu <shumin.qiu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Shumin Qiu <shumin.qiu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18688 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c