gpio: timberdale: Delete an error message
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: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Родитель
8f55fed3c9
Коммит
587ca5ed56
|
@ -239,10 +239,9 @@ static int timbgpio_probe(struct platform_device *pdev)
|
||||||
}
|
}
|
||||||
|
|
||||||
tgpio = devm_kzalloc(dev, sizeof(struct timbgpio), GFP_KERNEL);
|
tgpio = devm_kzalloc(dev, sizeof(struct timbgpio), GFP_KERNEL);
|
||||||
if (!tgpio) {
|
if (!tgpio)
|
||||||
dev_err(dev, "Memory alloc failed\n");
|
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
|
||||||
tgpio->irq_base = pdata->irq_base;
|
tgpio->irq_base = pdata->irq_base;
|
||||||
|
|
||||||
spin_lock_init(&tgpio->lock);
|
spin_lock_init(&tgpio->lock);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче