Skip to content

Commit

Permalink
ARM: pxa: ssp: remove unnecessary warning on kzalloc() failure
Browse files Browse the repository at this point in the history
The memory subsystem will already complain loudly enough in such cases.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Daniel Mack authored and Mark Brown committed Aug 14, 2013
1 parent 4edec9e commit 64be281
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/arm/plat-pxa/ssp.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,9 @@ static int pxa_ssp_probe(struct platform_device *pdev)
int ret = 0;

ssp = kzalloc(sizeof(struct ssp_device), GFP_KERNEL);
if (ssp == NULL) {
dev_err(&pdev->dev, "failed to allocate memory");
if (ssp == NULL)
return -ENOMEM;
}

ssp->pdev = pdev;

ssp->clk = clk_get(&pdev->dev, NULL);
Expand Down

0 comments on commit 64be281

Please sign in to comment.