From: Jeff Liu <jeff.liu@oracle.com>
To: JBottomley@parallels.com, deller@gmx.de
Cc: linux-parisc@vger.kernel.org
Subject: [PATCH 12/24] drivers/parisc: return actual error on pdc_stable_init
Date: Tue, 17 Jun 2014 22:30:57 +0800 [thread overview]
Message-ID: <53A05121.1040100@oracle.com> (raw)
From: Jie Liu <jeff.liu@oracle.com>
Return the actual error code than ENOMEM if call kset_create_and_add()
failed at pdc_stable_init().
Cc: James E.J. Bottomley <jejb@parisc-linux.org>
Cc: Helge Deller <deller@gmx.de>
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
---
drivers/parisc/pdc_stable.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/parisc/pdc_stable.c b/drivers/parisc/pdc_stable.c
index 0f54ab6..3daca50 100644
--- a/drivers/parisc/pdc_stable.c
+++ b/drivers/parisc/pdc_stable.c
@@ -1065,8 +1065,8 @@ pdc_stable_init(void)
/* register the paths kset as a child of the stable kset */
paths_kset = kset_create_and_add("paths", NULL, stable_kobj);
- if (!paths_kset) {
- rc = -ENOMEM;
+ if (IS_ERR(paths_kset)) {
+ rc = PTR_ERR(paths_kset);
goto fail_ksetreg;
}
--
1.8.3.2
next reply other threads:[~2014-06-17 14:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-17 14:30 Jeff Liu [this message]
2014-06-18 1:46 ` [PATCH 12/24] drivers/parisc: return actual error on pdc_stable_init Jeff Liu
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=53A05121.1040100@oracle.com \
--to=jeff.liu@oracle.com \
--cc=JBottomley@parallels.com \
--cc=deller@gmx.de \
--cc=linux-parisc@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.