public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] s390/sclp: replace PTR_RET with PTR_ERR_OR_ZERO
       [not found] <1397210706-28665-1-git-send-email-duanj.fnst@cn.fujitsu.com>
@ 2014-04-11 11:48 ` Martin Schwidefsky
  0 siblings, 0 replies; only message in thread
From: Martin Schwidefsky @ 2014-04-11 11:48 UTC (permalink / raw)
  To: linux-s390

On Fri, 11 Apr 2014 18:05:06 +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_cmd.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/s390/char/sclp_cmd.c b/drivers/s390/char/sclp_cmd.c
> index 6e8f90f..6e14999 100644
> --- a/drivers/s390/char/sclp_cmd.c
> +++ b/drivers/s390/char/sclp_cmd.c
> @@ -515,7 +515,7 @@ static int __init sclp_detect_standby_memory(void)
>  	if (rc)
>  		goto out;
>  	sclp_pdev = platform_device_register_simple("sclp_mem", -1, NULL, 0);
> -	rc = PTR_RET(sclp_pdev);
> +	rc = PTR_ERR_OR_ZERO(sclp_pdev);
>  	if (rc)
>  		goto out_driver;
>  	sclp_add_standby_memory();

Applied to our internal tree and will be added to the linux-s390 tree.
Thanks.

-- 
blue skies,
   Martin.

"Reality continues to ruin my life." - Calvin.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-04-11 11:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1397210706-28665-1-git-send-email-duanj.fnst@cn.fujitsu.com>
2014-04-11 11:48 ` [PATCH] s390/sclp: replace PTR_RET with PTR_ERR_OR_ZERO Martin Schwidefsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox