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:
5d4acfc
)
ieee802154: ca8210: Delete an error message for a failed memory allocation in ca8210_...
author
Markus Elfring
<elfring@users.sourceforge.net>
Mon, 22 May 2017 05:32:46 +0000
(07:32 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 22 May 2017 08:26:57 +0000
(10:26 +0200)
Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Link:
http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/ca8210.c
patch
|
blob
|
history
diff --git
a/drivers/net/ieee802154/ca8210.c
b/drivers/net/ieee802154/ca8210.c
index 25fd3b04b3c0cdd07a536cc32c1f270599dafcb5..25ed11bb5ed36b49caf49c9bc3c4da9a31d5f0ac 100644
(file)
--- a/
drivers/net/ieee802154/ca8210.c
+++ b/
drivers/net/ieee802154/ca8210.c
@@
-3143,10
+3143,6
@@
static int ca8210_probe(struct spi_device *spi_device)
pdata = kmalloc(sizeof(*pdata), GFP_KERNEL);
if (!pdata) {
- dev_crit(
- &spi_device->dev,
- "Could not allocate platform data\n"
- );
ret = -ENOMEM;
goto error;
}