aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ieee802154
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-05-22 07:32:46 +0200
committerMarcel Holtmann <marcel@holtmann.org>2017-05-22 10:26:57 +0200
commit8ec4a1e950edd29075c5316dc68e83faf69904d6 (patch)
tree59ceab4707cee00ce4d79453a93f04fd8f7c4ca3 /drivers/net/ieee802154
parentBluetooth: Delete error messages for failed memory allocations in two functions (diff)
downloadlinux-dev-8ec4a1e950edd29075c5316dc68e83faf69904d6.tar.xz
linux-dev-8ec4a1e950edd29075c5316dc68e83faf69904d6.zip
ieee802154: ca8210: Delete an error message for a failed memory allocation in ca8210_probe()
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>
Diffstat (limited to 'drivers/net/ieee802154')
-rw-r--r--drivers/net/ieee802154/ca8210.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/ieee802154/ca8210.c b/drivers/net/ieee802154/ca8210.c
index 25fd3b04b3c0..25ed11bb5ed3 100644
--- 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;
}