mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
s390/ap_bus: 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
60d081c586
commit
ba8da2138e
1 changed files with 2 additions and 2 deletions
|
@ -1795,7 +1795,7 @@ static int ap_poll_thread_start(void)
|
|||
mutex_lock(&ap_poll_thread_mutex);
|
||||
if (!ap_poll_kthread) {
|
||||
ap_poll_kthread = kthread_run(ap_poll_thread, NULL, "appoll");
|
||||
rc = IS_ERR(ap_poll_kthread) ? PTR_ERR(ap_poll_kthread) : 0;
|
||||
rc = PTR_RET(ap_poll_kthread);
|
||||
if (rc)
|
||||
ap_poll_kthread = NULL;
|
||||
}
|
||||
|
@ -1904,7 +1904,7 @@ int __init ap_module_init(void)
|
|||
|
||||
/* Create /sys/devices/ap. */
|
||||
ap_root_device = root_device_register("ap");
|
||||
rc = IS_ERR(ap_root_device) ? PTR_ERR(ap_root_device) : 0;
|
||||
rc = PTR_RET(ap_root_device);
|
||||
if (rc)
|
||||
goto out_bus;
|
||||
|
||||
|
|
Loading…
Reference in a new issue