summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>2013-11-12 15:09:51 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2013-11-13 12:09:22 +0900
commitff6092a8a413f3db1938b4606e078fa751ed6cdb (patch)
treeef8e727c1eb68de0f8ec5ca7f401a96bae6c784b
parentc0d92a57a88586586b8cb9c7ac149bd10bc40d11 (diff)
downloadlinux-ff6092a8a413f3db1938b4606e078fa751ed6cdb.tar.bz2
lib/digsig.c: use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com> Cc: James Morris <james.l.morris@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--lib/digsig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/digsig.c b/lib/digsig.c
index 2f31e6a45f0a..8793aeda30ca 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 {