Commit 275b5d20 authored by Alexandru Gheorghiu's avatar Alexandru Gheorghiu Committed by Greg Kroah-Hartman
Browse files

drivers: char: Use PTR_RET function



Used PTR_RET function instead of IS_ERR and PTR_ERR.
Patch found using coccinelle.

Signed-off-by: default avatarAlexandru Gheorghiu <gheorghiuandru@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2451a848
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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. */