diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-08-22 16:44:44 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-08-30 10:05:31 +0200 |
commit | 25e9960c370b23d6627a3424d0d9820e72152096 (patch) | |
tree | b528a6f9fd941ce059ede429d72b3b3ad591289e /drivers/crypto/atmel-i2c.h | |
parent | crypto: aegis128 - Fix -Wunused-const-variable warning (diff) | |
download | linux-25e9960c370b23d6627a3424d0d9820e72152096.tar.xz linux-25e9960c370b23d6627a3424d0d9820e72152096.zip |
crypto: atmel - Fix -Wunused-const-variable warning
drivers/crypto/atmel-i2c.h:68:3: warning:
error_list defined but not used [-Wunused-const-variable=]
error_list is only used in atmel-i2c.c,
so just move the definition over there.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/atmel-i2c.h')
-rw-r--r-- | drivers/crypto/atmel-i2c.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/crypto/atmel-i2c.h b/drivers/crypto/atmel-i2c.h index 21860b99c3e3..63b97b104f16 100644 --- a/drivers/crypto/atmel-i2c.h +++ b/drivers/crypto/atmel-i2c.h @@ -62,18 +62,6 @@ struct atmel_i2c_cmd { #define STATUS_NOERR 0x00 #define STATUS_WAKE_SUCCESSFUL 0x11 -static const struct { - u8 value; - const char *error_text; -} error_list[] = { - { 0x01, "CheckMac or Verify miscompare" }, - { 0x03, "Parse Error" }, - { 0x05, "ECC Fault" }, - { 0x0F, "Execution Error" }, - { 0xEE, "Watchdog about to expire" }, - { 0xFF, "CRC or other communication error" }, -}; - /* Definitions for eeprom organization */ #define CONFIG_ZONE 0 |