mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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>
This commit is contained in:
parent
6106d888a0
commit
708aa931bd
1 changed files with 0 additions and 1 deletions
|
@ -401,7 +401,6 @@ static int atmel_tcb_pwm_probe(struct platform_device *pdev)
|
||||||
tcbpwm = devm_kzalloc(&pdev->dev, sizeof(*tcbpwm), GFP_KERNEL);
|
tcbpwm = devm_kzalloc(&pdev->dev, sizeof(*tcbpwm), GFP_KERNEL);
|
||||||
if (tcbpwm == NULL) {
|
if (tcbpwm == NULL) {
|
||||||
err = -ENOMEM;
|
err = -ENOMEM;
|
||||||
dev_err(&pdev->dev, "failed to allocate memory\n");
|
|
||||||
goto err_free_tc;
|
goto err_free_tc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue