Skip to content

Commit 8ec4a1e

Browse files
elfringholtmann
authored andcommitted
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 <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 5d4acfc commit 8ec4a1e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/net/ieee802154/ca8210.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3143,10 +3143,6 @@ static int ca8210_probe(struct spi_device *spi_device)
31433143

31443144
pdata = kmalloc(sizeof(*pdata), GFP_KERNEL);
31453145
if (!pdata) {
3146-
dev_crit(
3147-
&spi_device->dev,
3148-
"Could not allocate platform data\n"
3149-
);
31503146
ret = -ENOMEM;
31513147
goto error;
31523148
}

0 commit comments

Comments
 (0)