[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20130610152330.GB6341@osiris>
Date: Mon, 10 Jun 2013 17:23:30 +0200
From: Heiko Carstens <heiko.carstens@...ibm.com>
To: Thomas Meyer <thomas@...3r.de>
Cc: linux-s390@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] s390/ap: Cocci spatch "ptr_ret.spatch"
On Sat, Jun 01, 2013 at 11:51:13AM +0200, Thomas Meyer wrote:
>
> Signed-off-by: Thomas Meyer <thomas@...3r.de>
> ---
>
> diff -u -p a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c
> --- a/drivers/s390/crypto/ap_bus.c
> +++ b/drivers/s390/crypto/ap_bus.c
> @@ -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;
Applied all you s390 related patches. Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists