]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg Variable: Minor update to the Data parameter for GetVariable()
authorStar Zeng <star.zeng@intel.com>
Fri, 29 Jan 2016 09:15:43 +0000 (09:15 +0000)
committerlzeng14 <lzeng14@Edk2>
Fri, 29 Jan 2016 09:15:43 +0000 (09:15 +0000)
commitdd59d95e1994c3d4dde7a0d5503109db1d207bea
tree0b6f895d1ef2b0470e9573dba3f6cc121744bc0c
parent61ce1aea2694214da2b0d06515ff3a6058d09896
MdeModulePkg Variable: Minor update to the Data parameter for GetVariable()

UEFI 2.6 spec has minor update to the Data parameter for GetVariable(),
and no real functional behavior change.

The modifier of Data parameter:
OUT VOID *Data
->
OUT VOID *Data OPTIONAL

The comments of Data parameter:
Data The buffer to return the contents of the variable.
->
Data The buffer to return the contents of the variable. May be NULL
        with a zero DataSize in order to determine the size buffer needed.

The patch is to follow the spec to update the implementation.

Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19771 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Universal/Variable/EmuRuntimeDxe/InitVariable.c
MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c