From: Martin Schwidefsky <schwidefsky@de.ibm.com>
To: linux-s390@vger.kernel.org
Subject: Re: [PATCH] s390/irq: replace PTR_RET with PTR_ERR_OR_ZERO
Date: Fri, 11 Apr 2014 11:47:27 +0000 [thread overview]
Message-ID: <20140411134727.7187bcc6@mschwide> (raw)
In-Reply-To: <1397210690-28605-1-git-send-email-duanj.fnst@cn.fujitsu.com>
On Fri, 11 Apr 2014 18:04:50 +0800
Duan Jiong <duanj.fnst@cn.fujitsu.com> wrote:
> PTR_RET is deprecated. Do not recommend its usage anymore.
> Use PTR_ERR_OR_ZERO instead.
>
> Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
> ---
> drivers/s390/char/sclp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/s390/char/sclp.c b/drivers/s390/char/sclp.c
> index 1990285..c316051 100644
> --- a/drivers/s390/char/sclp.c
> +++ b/drivers/s390/char/sclp.c
> @@ -1252,7 +1252,7 @@ static __init int sclp_initcall(void)
> return rc;
>
> sclp_pdev = platform_device_register_simple("sclp", -1, NULL, 0);
> - rc = PTR_RET(sclp_pdev);
> + rc = PTR_ERR_OR_ZERO(sclp_pdev);
> if (rc)
> goto fail_platform_driver_unregister;
>
Applied to our internal tree with a modified subject line. It
will go out over the linux-s390 tree. Thanks.
--
blue skies,
Martin.
"Reality continues to ruin my life." - Calvin.
parent reply other threads:[~2014-04-11 11:47 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1397210690-28605-1-git-send-email-duanj.fnst@cn.fujitsu.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140411134727.7187bcc6@mschwide \
--to=schwidefsky@de.ibm.com \
--cc=linux-s390@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox