audk/CryptoPkg/Library/BaseCryptLib/Pk
Peter Jones b5a985ca92 CryptoPkg/BaseCryptLib: remove some duplicate initializations.
clang-analyzer noticed this:

Pk/CryptPkcs7Verify.c:600:5: warning: Value stored to 'OldSize' is never read
    OldSize    = BufferSize;
    ^            ~~~~~~~~~~
Pk/CryptPkcs7Verify.c:644:5: warning: Value stored to 'OldSize' is never read
    OldSize    = BufferSize;
    ^            ~~~~~~~~~~
2 warnings generated.

These are each immediately followed by a loop that initializes them (to
the same values) a second time, and are otherwise only referenced inside
that loop, so there's just no point to these assignments at all.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Peter Jones <pjones@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Long Qin <qin.long@intel.com>
2017-10-24 15:20:22 +08:00
..
CryptAuthenticode.c CryptoPkg: Fix typos in comments 2016-11-07 23:21:22 +08:00
CryptAuthenticodeNull.c CryptoPkg: Fix typos in comments 2016-11-07 23:21:22 +08:00
CryptDh.c CryptoPkg/BaseCryptLib: Add NULL pointer checks in DH and P7Verify 2017-05-22 08:57:48 +08:00
CryptDhNull.c Add interfaces to several library instances of BaseCryptLib. 2012-07-18 09:32:05 +00:00
CryptPkcs5Pbkdf2.c CryptoPkg: Add PKCS5 PBKDF2 interface for password derivation. 2016-11-02 23:19:01 +08:00
CryptPkcs5Pbkdf2Null.c CryptoPkg: Add PKCS5 PBKDF2 interface for password derivation. 2016-11-02 23:19:01 +08:00
CryptPkcs7Sign.c CryptoPkg: Update PK Cipher Wrappers work with opaque objects. 2017-03-29 16:18:32 +08:00
CryptPkcs7SignNull.c Add interfaces to several library instances of BaseCryptLib. 2012-07-18 09:32:05 +00:00
CryptPkcs7Verify.c CryptoPkg/BaseCryptLib: remove some duplicate initializations. 2017-10-24 15:20:22 +08:00
CryptPkcs7VerifyNull.c CryptoPkg: Fix typos in comments 2016-11-07 23:21:22 +08:00
CryptRsaBasic.c CryptoPkg: Update PK Cipher Wrappers work with opaque objects. 2017-03-29 16:18:32 +08:00
CryptRsaExt.c CryptoPkg: Update PK Cipher Wrappers work with opaque objects. 2017-03-29 16:18:32 +08:00
CryptRsaExtNull.c Add interfaces to several library instances of BaseCryptLib. 2012-07-18 09:32:05 +00:00
CryptTs.c CryptoPkg: Update PK Cipher Wrappers work with opaque objects. 2017-03-29 16:18:32 +08:00
CryptTsNull.c CryptoPkg: Fix typos in comments 2016-11-07 23:21:22 +08:00
CryptX509.c CryptoPkg: Add new API to retrieve commonName of X.509 certificate 2017-09-25 00:06:41 +08:00
CryptX509Null.c CryptoPkg: Add new API to retrieve commonName of X.509 certificate 2017-09-25 00:06:41 +08:00