From: Alexandru Gheorghiu Date: Thu, 14 Mar 2013 09:18:18 +0000 (+0200) Subject: spi/spidev: Use PTR_RET function X-Git-Tag: next-20130402~40^2~7 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8179bb2655b607d4c3e8cea10a60eb3cf8557b63;p=karo-tx-linux.git spi/spidev: Use PTR_RET function Replaced calls to IS_ERR and PTR_ERR with PTR_RET function. Patch found using coccinelle. Signed-off-by: Alexandru Gheorghiu Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 2e0655dbe070..911e9e0711d2 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -603,7 +603,7 @@ static int spidev_probe(struct spi_device *spi) dev = device_create(spidev_class, &spi->dev, spidev->devt, spidev, "spidev%d.%d", spi->master->bus_num, spi->chip_select); - status = IS_ERR(dev) ? PTR_ERR(dev) : 0; + status = PTR_RET(dev); } else { dev_dbg(&spi->dev, "no minor number available!\n"); status = -ENODEV;