Skip to content
Snippets Groups Projects
Commit 9363be21 authored by Markus Elfring's avatar Markus Elfring Committed by Lee Jones
Browse files

mfd: twl6030-irq: Delete an error message for a failed memory allocation in twl6030_init_irq()


Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 7672c840
No related branches found
No related tags found
No related merge requests found
......@@ -392,10 +392,8 @@ int twl6030_init_irq(struct device *dev, int irq_num)
nr_irqs = TWL6030_NR_IRQS;
twl6030_irq = devm_kzalloc(dev, sizeof(*twl6030_irq), GFP_KERNEL);
if (!twl6030_irq) {
dev_err(dev, "twl6030_irq: Memory allocation failed\n");
if (!twl6030_irq)
return -ENOMEM;
}
mask[0] = 0xFF;
mask[1] = 0xFF;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment