projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0d92a5
)
lib/digsig.c: use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
author
Duan Jiong
<duanj.fnst@cn.fujitsu.com>
Tue, 12 Nov 2013 23:09:51 +0000
(15:09 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 13 Nov 2013 03:09:22 +0000
(12:09 +0900)
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>
lib/digsig.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/digsig.c
b/lib/digsig.c
index 2f31e6a45f0af3f4e4bccd38aeb1d8324c72eeff..8793aeda30ca36a72106d3649b62456f00cc7c56 100644
(file)
--- 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 {