mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
drivers: char: Use PTR_RET function
Used PTR_RET function instead of IS_ERR and PTR_ERR. Patch found using coccinelle. Signed-off-by: Alexandru Gheorghiu <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
2451a84839
commit
275b5d2061
1 changed files with 1 additions and 1 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue