X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Fspi%2Fspi-sh-msiof.c;h=2ce15ca977828668e0fa8e186b6b9a8393cdc70d;hb=72c33734b5fa8a788734ad2312a89b944589c5a0;hp=1f00eeb0b5a3fb93ae838978dbf7815d94897378;hpb=715e82cf93ec9e8f728e42284abe9998dec2888e;p=karo-tx-linux.git diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c index 1f00eeb0b5a3..2ce15ca97782 100644 --- a/drivers/spi/spi-sh-msiof.c +++ b/drivers/spi/spi-sh-msiof.c @@ -1164,10 +1164,8 @@ static int sh_msiof_spi_probe(struct platform_device *pdev) int ret; master = spi_alloc_master(&pdev->dev, sizeof(struct sh_msiof_spi_priv)); - if (master == NULL) { - dev_err(&pdev->dev, "failed to allocate spi master\n"); + if (master == NULL) return -ENOMEM; - } p = spi_master_get_devdata(master);