From: Duan Jiong <duanj.fnst@cn.fujitsu.com>
To: Dmitry Kasatkin <dmitry.kasatkin@intel.com>,
James Morris <james.l.morris@oracle.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] digsig: use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
Date: Fri, 27 Sep 2013 11:30:44 +0800 [thread overview]
Message-ID: <5244FBE4.5040400@cn.fujitsu.com> (raw)
Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
---
lib/digsig.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/digsig.c b/lib/digsig.c
index 2f31e6a..8793aed 100644
--- a/lib/digsig.c
+++ b/lib/digsig.c
@@ -209,7 +209,7 @@ int digsig_verify(struct key *keyring, const char *sig, int siglen,
kref = keyring_search(make_key_ref(keyring, 1UL),
&key_type_user, name);
if (IS_ERR(kref))
- key = ERR_PTR(PTR_ERR(kref));
+ key = ERR_CAST(kref);
else
key = key_ref_to_ptr(kref);
} else {
--
1.8.3.1
reply other threads:[~2013-09-27 3:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=5244FBE4.5040400@cn.fujitsu.com \
--to=duanj.fnst@cn.fujitsu.com \
--cc=dmitry.kasatkin@intel.com \
--cc=james.l.morris@oracle.com \
--cc=linux-kernel@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