spi: spi-ep93xx: remove dev_err() for kzalloc() failure
PATCH v2 6/11 spi: spi-ep93xx: remove dev_err() for kzalloc() failure
The kzalloc() failure will have already output a message.
Signed-off-by H Hartley Sweeten <[email protected]>
Cc Ryan Mallon <[email protected]>
Cc Mika Westerberg <[email protected]>
Cc Mark Brown <[email protected]>
Cc Grant Likely <[email protected]>
--- drivers/spi/spi-ep93xx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/spi/spi-ep93xx.c +1 -3
@@ -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;
Signature · 1 line
1.8.1.4
Quoted 5 lines · H Hartley Sweeten
The
kzalloc()failure will have already output a message.Signed-off-by H Hartley Sweeten <[email protected]>Cc Ryan Mallon <[email protected]>Cc Mika Westerberg <[email protected]>
Acked-by Mika Westerberg <[email protected]>
Quoted 1 line · H Hartley Sweeten
The
kzalloc()failure will have already output a message.
Applied, thanks.