Commit 405e64a1 authored by Markus Elfring's avatar Markus Elfring Committed by Linus Walleij

pinctrl: tz1090-pdc: Delete an error message for a failed memory allocation in two functions

Omit an extra message for a memory allocation failure in these functions.

This issue was detected by using the Coccinelle software.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 8c017679
...@@ -357,10 +357,8 @@ static int add_map_configs(struct device *dev, ...@@ -357,10 +357,8 @@ static int add_map_configs(struct device *dev,
dup_configs = kmemdup(configs, num_configs * sizeof(*dup_configs), dup_configs = kmemdup(configs, num_configs * sizeof(*dup_configs),
GFP_KERNEL); GFP_KERNEL);
if (!dup_configs) { if (!dup_configs)
dev_err(dev, "kmemdup(configs) failed\n");
return -ENOMEM; return -ENOMEM;
}
/* /*
* We support both pins and pin groups, but we need to figure out which * We support both pins and pin groups, but we need to figure out which
...@@ -931,10 +929,9 @@ static int tz1090_pdc_pinctrl_probe(struct platform_device *pdev) ...@@ -931,10 +929,9 @@ static int tz1090_pdc_pinctrl_probe(struct platform_device *pdev)
struct resource *res; struct resource *res;
pmx = devm_kzalloc(&pdev->dev, sizeof(*pmx), GFP_KERNEL); pmx = devm_kzalloc(&pdev->dev, sizeof(*pmx), GFP_KERNEL);
if (!pmx) { if (!pmx)
dev_err(&pdev->dev, "Can't alloc tz1090_pdc_pmx\n");
return -ENOMEM; return -ENOMEM;
}
pmx->dev = &pdev->dev; pmx->dev = &pdev->dev;
spin_lock_init(&pmx->lock); spin_lock_init(&pmx->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment