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

On Fri, 11 Apr 2014 18:04:17 +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/net/lcs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/s390/net/lcs.c b/drivers/s390/net/lcs.c
> index c461f2a..8d5d969 100644
> --- a/drivers/s390/net/lcs.c
> +++ b/drivers/s390/net/lcs.c
> @@ -2442,7 +2442,7 @@ __init lcs_init_module(void)
>  	if (rc)
>  		goto out_err;
>  	lcs_root_dev = root_device_register("lcs");
> -	rc = PTR_RET(lcs_root_dev);
> +	rc = PTR_ERR_OR_ZERO(lcs_root_dev);
>  	if (rc)
>  		goto register_err;
>  	rc = ccw_driver_register(&lcs_ccw_driver);

Applied to our internal tree and will be added to the network
patch queue. 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:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1397210657-28486-1-git-send-email-duanj.fnst@cn.fujitsu.com>
2014-04-11 11:46 ` [PATCH] lcs: 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