diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2018-02-14 22:05:11 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-02-22 15:16:59 +0100 |
commit | 72e8d3f895946720c9151d4c2c7155cf4a592f48 (patch) | |
tree | 31c0aa8f53b29a6b9dc6deae8db93fc847bf9f85 | |
parent | crypto: bfin_crc - Delete an error message for a failed memory allocation in ... (diff) | |
download | linux-72e8d3f895946720c9151d4c2c7155cf4a592f48.tar.xz linux-72e8d3f895946720c9151d4c2c7155cf4a592f48.zip |
crypto: bcm - Delete an error message for a failed memory allocation in do_shash()
Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | drivers/crypto/bcm/util.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/crypto/bcm/util.c b/drivers/crypto/bcm/util.c index d543c010ccd9..a912c6ad3e85 100644 --- a/drivers/crypto/bcm/util.c +++ b/drivers/crypto/bcm/util.c @@ -279,7 +279,6 @@ int do_shash(unsigned char *name, unsigned char *result, sdesc = kmalloc(size, GFP_KERNEL); if (!sdesc) { rc = -ENOMEM; - pr_err("%s: Memory allocation failure\n", __func__); goto do_shash_err; } sdesc->shash.tfm = hash; |