Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64be2814 authored by Daniel Mack's avatar Daniel Mack Committed by Mark Brown
Browse files

ARM: pxa: ssp: remove unnecessary warning on kzalloc() failure



The memory subsystem will already complain loudly enough in such cases.

Signed-off-by: default avatarDaniel Mack <zonque@gmail.com>
Acked-by: default avatarHaojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 4edec9ea
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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);