mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 01:51:53 +00:00
spi: spi-ep93xx: remove dev_err() for kzalloc() failure
The kzalloc() failure will have already output a message. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: Mika Westerberg <mika.westerberg@iki.fi> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
48a7776e98
commit
b2d185edba
@ -1004,10 +1004,8 @@ static int ep93xx_spi_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
master = spi_alloc_master(&pdev->dev, sizeof(*espi));
|
||||
if (!master) {
|
||||
dev_err(&pdev->dev, "failed to allocate spi master\n");
|
||||
if (!master)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
master->setup = ep93xx_spi_setup;
|
||||
master->transfer = ep93xx_spi_transfer;
|
||||
|
Loading…
Reference in New Issue
Block a user