summaryrefslogtreecommitdiffstats
path: root/SecurityPkg/Tcg/TcgConfigDxe
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2020-01-16 13:34:21 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-01-31 09:35:31 +0000
commitfb02f5b2cd0b2a2d413a4f4fc41e085be2ede089 (patch)
tree3c637092b7d455cd6e9c788a056bc81e3e695277 /SecurityPkg/Tcg/TcgConfigDxe
parentc602e97446a8e818bf09182f5dc9f3fa409ece95 (diff)
downloadedk2-fb02f5b2cd0b2a2d413a4f4fc41e085be2ede089.tar.gz
edk2-fb02f5b2cd0b2a2d413a4f4fc41e085be2ede089.tar.bz2
edk2-fb02f5b2cd0b2a2d413a4f4fc41e085be2ede089.zip
SecurityPkg/DxeImageVerificationHandler: eliminate "Status" variable
The "Status" variable is set to EFI_ACCESS_DENIED at the top of the function. Then it is overwritten with EFI_SECURITY_VIOLATION under the "Failed" (earlier: "Done") label. We finally return "Status". The above covers the complete usage of "Status" in DxeImageVerificationHandler(). Remove the variable, and simply return EFI_SECURITY_VIOLATION in the end. This patch is a no-op, regarding behavior. 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-9-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>]
Diffstat (limited to 'SecurityPkg/Tcg/TcgConfigDxe')
0 files changed, 0 insertions, 0 deletions