Skip to content

Commit

Permalink
pwm: tegra: Remove unnecessary OOM messages
Browse files Browse the repository at this point in the history
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.

Signed-off-by: Jingoo Han <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
  • Loading branch information
Jingoo Han authored and thierryreding committed Apr 28, 2014
1 parent 9321fe9 commit 474b690
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/pwm/pwm-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,8 @@ static int tegra_pwm_probe(struct platform_device *pdev)
int ret;

pwm = devm_kzalloc(&pdev->dev, sizeof(*pwm), GFP_KERNEL);
if (!pwm) {
dev_err(&pdev->dev, "failed to allocate memory\n");
if (!pwm)
return -ENOMEM;
}

pwm->dev = &pdev->dev;

Expand Down

0 comments on commit 474b690

Please sign in to comment.