summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-atmel-tcb.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-12-15 18:55:11 +0100
committerThierry Reding <thierry.reding@gmail.com>2018-03-27 23:28:53 +0200
commit708aa931bd09459bd3c1bcbcbf1e335087b0c951 (patch)
tree3f556a77c985466d05582a7be4516f455042cf60 /drivers/pwm/pwm-atmel-tcb.c
parentpwm: puv3: Delete an error message for a failed memory allocation (diff)
downloadlinux-708aa931bd09459bd3c1bcbcbf1e335087b0c951.tar.xz
linux-708aa931bd09459bd3c1bcbcbf1e335087b0c951.zip
pwm: atmel-tcb: Delete an error message for a failed memory allocation
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: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-atmel-tcb.c')
-rw-r--r--drivers/pwm/pwm-atmel-tcb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-atmel-tcb.c b/drivers/pwm/pwm-atmel-tcb.c
index acd3ce8ecf3f..4fb1be246c44 100644
--- a/drivers/pwm/pwm-atmel-tcb.c
+++ b/drivers/pwm/pwm-atmel-tcb.c
@@ -401,7 +401,6 @@ static int atmel_tcb_pwm_probe(struct platform_device *pdev)
tcbpwm = devm_kzalloc(&pdev->dev, sizeof(*tcbpwm), GFP_KERNEL);
if (tcbpwm == NULL) {
err = -ENOMEM;
- dev_err(&pdev->dev, "failed to allocate memory\n");
goto err_free_tc;
}