提交 64be2814 编写于 作者: D Daniel Mack 提交者: Mark Brown

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

The memory subsystem will already complain loudly enough in such cases.
Signed-off-by: NDaniel Mack <zonque@gmail.com>
Acked-by: NHaojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 4edec9ea
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册