[PATCH 3/4] crypto: bcm: Constify *hash_alg_name[]

2018-02-27 Thread Hernán Gonzalez
Note: This is compile only tested. No gain from this except some self-documenting. Signed-off-by: Hernán Gonzalez --- drivers/crypto/bcm/spu.c | 5 +++-- drivers/crypto/bcm/spu.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/bcm/spu.c b/drivers/crypto/bcm

[PATCH 1/4] crypto: bcm: Remove unused variable (char *tag_to_hash_idx[])

2018-02-27 Thread Hernán Gonzalez
: Before=9185256, After=9185236, chg -0.00% Signed-off-by: Hernán Gonzalez --- drivers/crypto/bcm/spu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/crypto/bcm/spu.c b/drivers/crypto/bcm/spu.c index dbb5c03..c3d177d 100644 --- a/drivers/crypto/bcm/spu.c +++ b/drivers/crypto/bcm

[PATCH 2/4] crypto: bcm: Move *aead_alg_name[] from spu.c to util.c. Constify too.

2018-02-27 Thread Hernán Gonzalez
Note: This is compile only tested. Move variable to where it is actually used. No gain from this except for some self-documenting. Signed-off-by: Hernán Gonzalez --- drivers/crypto/bcm/spu.c | 2 -- drivers/crypto/bcm/spu.h | 1 - drivers/crypto/bcm/util.c | 2 ++ 3 files changed, 2

[PATCH 4/4] crypto: bcm: Constify variables in spu2.c

2018-02-27 Thread Hernán Gonzalez
=9185236, After=9185076, chg -0.00% Signed-off-by: Hernán Gonzalez --- drivers/crypto/bcm/spu2.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/crypto/bcm/spu2.c b/drivers/crypto/bcm/spu2.c index bf7ac62..fcf3885 100644 --- a/drivers/crypto/bcm/spu2