Skip to content

Commit

Permalink
s390/ap_bus: Cocci spatch "ptr_ret.spatch"
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Meyer <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Martin Schwidefsky <[email protected]>
  • Loading branch information
thomasmey authored and Martin Schwidefsky committed Jun 26, 2013
1 parent 60d081c commit ba8da21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/s390/crypto/ap_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit ba8da21

Please sign in to comment.