projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6106d88
)
pwm: atmel-tcb: Delete an error message for a failed memory allocation
author
Markus Elfring
<elfring@users.sourceforge.net>
Fri, 15 Dec 2017 17:55:11 +0000
(18:55 +0100)
committer
Thierry Reding
<thierry.reding@gmail.com>
Tue, 27 Mar 2018 21:28:53 +0000
(23:28 +0200)
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>
drivers/pwm/pwm-atmel-tcb.c
patch
|
blob
|
history
diff --git
a/drivers/pwm/pwm-atmel-tcb.c
b/drivers/pwm/pwm-atmel-tcb.c
index
acd3ce8
..
4fb1be2
100644
(file)
--- 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;
}