]> git.proxmox.com Git - mirror_edk2.git/commit
IntelSiliconPkg/PlatformVTdSample: Avoid using constant result 'if'
authorHao Wu <hao.a.wu@intel.com>
Tue, 29 Aug 2017 11:33:09 +0000 (19:33 +0800)
committerHao Wu <hao.a.wu@intel.com>
Wed, 30 Aug 2017 11:14:20 +0000 (19:14 +0800)
commit7046a2739ae74f5d5c86ea18dc4bcc855e4916c6
tree247e174a1f686c3df240e0c9243d4709b3355266
parentdb6f08a0eae66f5c8e9a91930d9bc78c7eb404bb
IntelSiliconPkg/PlatformVTdSample: Avoid using constant result 'if'

In this sample driver, if (0) {...} else {...} statements were used to
illustrate two different using scenarios.

This comment refines the coding style by substituting the 'if (0)'
statement with comments to select sample codes for different cases.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
IntelSiliconPkg/PlatformVTdSampleDxe/PlatformVTdSampleDxe.c