audk/SecurityPkg
Laszlo Ersek eccb856f01 SecurityPkg/DxeImageVerificationHandler: remove "else" after return/break
In the code structure

  if (condition) {
    //
    // block1
    //
    return;
  } else {
    //
    // block2
    //
  }

nesting "block2" in an "else" branch is superfluous, and harms
readability. It can be transformed to:

  if (condition) {
    //
    // block1
    //
    return;
  }
  //
  // block2
  //

with identical behavior, and improved readability (less nesting).

The same applies to "break" (instead of "return") in a loop body.

Perform these transformations on DxeImageVerificationHandler().

This patch is a no-op for behavior. Use

  git show -b -W

for reviewing it more easily.

Cc: Chao Zhang <chao.b.zhang@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2129
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20200116190705.18816-3-lersek@redhat.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
[lersek@redhat.com: push with Mike's R-b due to Chinese New Year
 Holiday: <https://edk2.groups.io/g/devel/message/53429>; msgid
 <d3fbb76dabed4e1987c512c328c82810@intel.com>]
2020-01-31 09:35:31 +00:00
..
FvReportPei SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
Hash2DxeCrypto SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
HddPassword SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
Include SecurityPkg/Guid: Add TCG 800-155 event GUID definition. 2020-01-06 06:23:19 +00:00
Library SecurityPkg/DxeImageVerificationHandler: remove "else" after return/break 2020-01-31 09:35:31 +00:00
Pkcs7Verify/Pkcs7VerifyDxe SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
RandomNumberGenerator/RngDxe SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
Tcg SecurityPkg/Tcg2Pei: Add TCG PFP 105 support. 2020-01-06 06:23:19 +00:00
VariableAuthenticated/SecureBootConfigDxe SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
SecurityPkg.ci.yaml SecurityPkg: Add YAML files for CI builds 2019-11-11 13:02:30 -08:00
SecurityPkg.dec SecurityPkg/Guid: Add TCG 800-155 event GUID definition. 2020-01-06 06:23:19 +00:00
SecurityPkg.dsc SecurityPkg: Add YAML files for CI builds 2019-11-11 13:02:30 -08:00
SecurityPkg.uni SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
SecurityPkgExtra.uni SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00