Skip to content

Commit

Permalink
pwm: atmel-tcb: Delete an error message for a failed memory allocation
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
  • Loading branch information
elfring authored and thierryreding committed Mar 27, 2018
1 parent 6106d88 commit 708aa93
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/pwm/pwm-atmel-tcb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 708aa93

Please sign in to comment.