From: frank.blaschka@de.ibm.com
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, linux-s390@vger.kernel.org
Subject: [patch 6/7] claw: replace PTR_RET with PTR_ERR_OR_ZERO
Date: Mon, 28 Apr 2014 10:05:10 +0200 [thread overview]
Message-ID: <20140428080533.442277178@de.ibm.com> (raw)
In-Reply-To: 20140428080504.925649066@de.ibm.com
[-- Attachment #1: claw-ptr-ret.diff --]
[-- Type: text/plain, Size: 643 bytes --]
From: Frank Blaschka <frank.blaschka@de.ibm.com>
PTR_RET is deprecated. Do not recommend its usage anymore.
Use PTR_ERR_OR_ZERO instead.
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
---
drivers/s390/net/claw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/s390/net/claw.c
+++ b/drivers/s390/net/claw.c
@@ -3348,7 +3348,7 @@ static int __init claw_init(void)
}
CLAW_DBF_TEXT(2, setup, "init_mod");
claw_root_dev = root_device_register("claw");
- ret = PTR_RET(claw_root_dev);
+ ret = PTR_ERR_OR_ZERO(claw_root_dev);
if (ret)
goto register_err;
ret = ccw_driver_register(&claw_ccw_driver);
next prev parent reply other threads:[~2014-04-28 8:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-28 8:05 [patch 0/7] s390: network patches for net-next frank.blaschka
2014-04-28 8:05 ` [patch 1/7] qeth: Fix default queue setting in priority queueing frank.blaschka
2014-04-28 8:05 ` [patch 2/7] lcs: replace PTR_RET with PTR_ERR_OR_ZERO frank.blaschka
2014-04-28 8:05 ` [patch 3/7] qeth: " frank.blaschka
2014-04-28 8:05 ` [patch 4/7] qeth: Extend priority queueing to IPv6 frank.blaschka
2014-04-28 8:05 ` [patch 5/7] qeth: Add new priority queueing options frank.blaschka
2014-04-28 8:05 ` frank.blaschka [this message]
2014-04-28 8:05 ` [patch 7/7] ctc: replace PTR_RET with PTR_ERR_OR_ZERO frank.blaschka
2014-04-28 17:44 ` [patch 0/7] s390: network patches for net-next David Miller
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=20140428080533.442277178@de.ibm.com \
--to=frank.blaschka@de.ibm.com \
--cc=davem@davemloft.net \
--cc=linux-s390@vger.kernel.org \
--cc=netdev@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.