diff --git a/drivers/char/tile-srom.c b/drivers/char/tile-srom.c index 3b22a606f79dc143abbece02b4893a71deee6e1b..2e2036e940fcafc2c52af4552da1cfd5d984d938 100644 --- a/drivers/char/tile-srom.c +++ b/drivers/char/tile-srom.c @@ -371,7 +371,7 @@ static int srom_setup_minor(struct srom_dev *srom, int index) dev = device_create(srom_class, &platform_bus, MKDEV(srom_major, index), srom, "%d", index); - return IS_ERR(dev) ? PTR_ERR(dev) : 0; + return PTR_RET(dev); } /** srom_init() - Initialize the driver's module. */