projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41b3316
)
crypto: bfin_crc - Delete an error message for a failed memory allocation in bfin_cry...
author
Markus Elfring
<elfring@users.sourceforge.net>
Wed, 14 Feb 2018 20:34:54 +0000
(21:34 +0100)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 22 Feb 2018 14:16:56 +0000
(22:16 +0800)
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>
drivers/crypto/bfin_crc.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/bfin_crc.c
b/drivers/crypto/bfin_crc.c
index 5ece3240531ef2dcbd748aa267e27c676503ab69..cfc4d682d55a596cfc2e837240275ae579a4cf96 100644
(file)
--- a/
drivers/crypto/bfin_crc.c
+++ b/
drivers/crypto/bfin_crc.c
@@
-588,10
+588,8
@@
static int bfin_crypto_crc_probe(struct platform_device *pdev)
int ret;
crc = devm_kzalloc(dev, sizeof(*crc), GFP_KERNEL);
- if (!crc) {
- dev_err(&pdev->dev, "fail to malloc bfin_crypto_crc\n");
+ if (!crc)
return -ENOMEM;
- }
crc->dev = dev;