]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg:Make the logic in ConfigRouting.c clear and safe
authorDandan Bi <dandan.bi@intel.com>
Tue, 26 Jan 2016 09:42:58 +0000 (09:42 +0000)
committerdandanbi <dandanbi@Edk2>
Tue, 26 Jan 2016 09:42:58 +0000 (09:42 +0000)
commitf447734e4f9879e7333a3b6c5548f0d23529a3af
tree1a78a72e7ba197ebf592cb35c2047abc21db7d50
parent03805fc376239ddc56838d33b20a031734e3e3a1
MdeModulePkg:Make the logic in ConfigRouting.c clear and safe

The BlockData is expected to be NULL when to call function
IsThisOpcodeRequired in each opcode,but now exists case that the
Blockdata not be cleaned,then will be used in other opcode.it
is not correct,now add the check before use.

The comments and logic in function IsThisOpcodeRequired are not
consistent,now refine the code to make the logic clear.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19749 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c