s390/drivers: Cocci spatch "ptr_ret.spatch"
Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
5eba9bb80f
commit
4bdb613ff4
|
@ -1170,7 +1170,7 @@ static __init int sclp_initcall(void)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
sclp_pdev = platform_device_register_simple("sclp", -1, NULL, 0);
|
sclp_pdev = platform_device_register_simple("sclp", -1, NULL, 0);
|
||||||
rc = IS_ERR(sclp_pdev) ? PTR_ERR(sclp_pdev) : 0;
|
rc = PTR_RET(sclp_pdev);
|
||||||
if (rc)
|
if (rc)
|
||||||
goto fail_platform_driver_unregister;
|
goto fail_platform_driver_unregister;
|
||||||
|
|
||||||
|
|
|
@ -668,7 +668,7 @@ static int __init sclp_detect_standby_memory(void)
|
||||||
if (rc)
|
if (rc)
|
||||||
goto out;
|
goto out;
|
||||||
sclp_pdev = platform_device_register_simple("sclp_mem", -1, NULL, 0);
|
sclp_pdev = platform_device_register_simple("sclp_mem", -1, NULL, 0);
|
||||||
rc = IS_ERR(sclp_pdev) ? PTR_ERR(sclp_pdev) : 0;
|
rc = PTR_RET(sclp_pdev);
|
||||||
if (rc)
|
if (rc)
|
||||||
goto out_driver;
|
goto out_driver;
|
||||||
sclp_add_standby_memory();
|
sclp_add_standby_memory();
|
||||||
|
|
|
@ -77,7 +77,7 @@ struct tape_class_device *register_tape_dev(
|
||||||
tcd->class_device = device_create(tape_class, device,
|
tcd->class_device = device_create(tape_class, device,
|
||||||
tcd->char_device->dev, NULL,
|
tcd->char_device->dev, NULL,
|
||||||
"%s", tcd->device_name);
|
"%s", tcd->device_name);
|
||||||
rc = IS_ERR(tcd->class_device) ? PTR_ERR(tcd->class_device) : 0;
|
rc = PTR_RET(tcd->class_device);
|
||||||
if (rc)
|
if (rc)
|
||||||
goto fail_with_cdev;
|
goto fail_with_cdev;
|
||||||
rc = sysfs_create_link(
|
rc = sysfs_create_link(
|
||||||
|
|
Loading…
Reference in New Issue