FmpDevicePkg FmpDxe: Use local variable to store test key digest size
authorStar Zeng <star.zeng@intel.com>
Tue, 31 Jul 2018 02:25:49 +0000 (10:25 +0800)
committerKinney, Michael D <michael.d.kinney@intel.com>
Thu, 2 Aug 2018 21:46:19 +0000 (14:46 -0700)
commitd7fb5a46324f1f8a3f0bba7a2ab06ea362ae1053
tree516709d69c782831adb1370dc7e4aa9e1838e587
parenta6d73269b134116cfb84830d81f5ac2a389eb91b
FmpDevicePkg FmpDxe: Use local variable to store test key digest size

Some static tool reports "the condition in 'if' statement is constant".

This patch updates the code to use local variable to store test key
digest size. It can pass the static tool's check.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
FmpDevicePkg/FmpDxe/DetectTestKey.c