Skip to content

Commit

Permalink
crypto: tcrypt - constify check alg list
Browse files Browse the repository at this point in the history
this patchs constify the alg list because this list is never modified.

Signed-off-by: Corentin Labbe <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
montjoie authored and herbertx committed Nov 17, 2019
1 parent d95312a commit 07d8f18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crypto/tcrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static int mode;
static u32 num_mb = 8;
static char *tvmem[TVMEMSIZE];

static char *check[] = {
static const char *check[] = {
"des", "md5", "des3_ede", "rot13", "sha1", "sha224", "sha256", "sm3",
"blowfish", "twofish", "serpent", "sha384", "sha512", "md4", "aes",
"cast6", "arc4", "michael_mic", "deflate", "crc32c", "tea", "xtea",
Expand Down Expand Up @@ -1634,7 +1634,7 @@ static void test_cipher_speed(const char *algo, int enc, unsigned int secs,

static void test_available(void)
{
char **name = check;
const char **name = check;

while (*name) {
printk("alg %s ", *name);
Expand Down

0 comments on commit 07d8f18

Please sign in to comment.