crypto: Redundant type conversion for AES_KEY pointer
commitccebb5f3735edcbcbf9429b605fcb9399a0dd72c
authorChen Qun <kuhn.chenqun@huawei.com>
Tue, 5 May 2020 08:59:40 +0000 (5 16:59 +0800)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 7 May 2020 11:48:41 +0000 (7 12:48 +0100)
tree0aa709c49251d077e60a87b71ef82ac38578a060
parent861c50bf5db3c18f5cd74ea929d4e018fdcedc64
crypto: Redundant type conversion for AES_KEY pointer

We can delete the redundant type conversion if
we set the the AES_KEY parameter with 'const' in
qcrypto_cipher_aes_ecb_(en|de)crypt() function.

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/cipher-builtin.c